roundcubemail/program/lib/Roundcube/rcube_plugin_api.php
public function unregister_hook($hook, $callback)
    {
        $callback_id = array_search($callback, (array) $this->handlers[$hook]);
        if ($callback_id !== false) {
            // array_splice() removes the element and re-indexes keys
            // that is required by the 'for' loop in exec_hook() below
            array_splice($this->handlers[$hook], $callback_id, 1);
        }
    }
public function unregister_hook($hook, $callback)
    {
        $callback_id = array_search($callback, (array) $this->handlers[$hook]);
        if ($callback_id !== false) {
            // array_splice() removes the element and re-indexes keys
            // that is required by the 'for' loop in exec_hook() below
            array_splice($this->handlers[$hook], $callback_id, 1);
        }
    }
public function unregister_hook ( $ hook , $ callback ) { $ callback_id = array_search ( $ callback , ( array ) $ this -> handlers [ $ hook ] ) ; if ( $ callback_id !== false ) { // array_splice() removes the element and re-indexes keys // that is required by the 'for' loop in exec_hook() below array_splice ( $ this -> handlers [ $ hook ] , $ callback_id , 1 ) ; } }
Allow a plugin object to unregister a callback.

@param string $hook Hook name
@param mixed  $callback String with global function name or array($obj, 'methodname')
Allow a plugin object to unregister a callback .