RemoveStatusChangeHandler: Bitrix method

      
<?php 
//  RemoveStatusChangeHandler()
//  /dist/bitrix/modules/bizproc/classes/general/activity.php:1070

    
public function RemoveStatusChangeHandler($event$eventHandler)
    {
        if (!
is_array($this->arStatusChangeHandlers))
            
$this->arStatusChangeHandlers = array();

        if (!
array_key_exists($event$this->arStatusChangeHandlers))
            
$this->arStatusChangeHandlers[$event] = array();

        
$index array_search($eventHandler$this->arStatusChangeHandlers[$event], true);

        if (
$index !== false)
            unset(
$this->arStatusChangeHandlers[$event][$index]);
    }