public function removeCallback($name, $callback, $prio = 10)
    {
        $key = $this->getCallbackKey($callback);

        if (in_array($key, $this->_callbacks[$name][$prio])) {
            while(false !== $k = array_search($key, $this->_callbacks[$name][$prio])) {
                unset($this->_callbacks[$name][$prio][$k]);
            }
            if (empty($this->_callbacks[$name][$prio])) {
                unset($this->_callbacks[$name][$prio]);
            }
            if (empty($this->_callbacks[$name])) {
                unset($this->_callbacks[$name]);
            }
        }

        return $this;       
    }
public function removeCallback($name, $callback, $prio = 10)
    {
        $key = $this->getCallbackKey($callback);

        if (in_array($key, $this->_callbacks[$name][$prio])) {
            while(false !== $k = array_search($key, $this->_callbacks[$name][$prio])) {
                unset($this->_callbacks[$name][$prio][$k]);
            }
            if (empty($this->_callbacks[$name][$prio])) {
                unset($this->_callbacks[$name][$prio]);
            }
            if (empty($this->_callbacks[$name])) {
                unset($this->_callbacks[$name]);
            }
        }

        return $this;       
    }
public function removeCallback ( $ name , $ callback , $ prio = 10 ) { $ key = $ this -> getCallbackKey ( $ callback ) ; if ( in_array ( $ key , $ this -> _callbacks [ $ name ] [ $ prio ] ) ) { while ( false !== $ k = array_search ( $ key , $ this -> _callbacks [ $ name ] [ $ prio ] ) ) { unset ( $ this -> _callbacks [ $ name ] [ $ prio ] [ $ k ] ) ; } if ( empty ( $ this -> _callbacks [ $ name ] [ $ prio ] ) ) { unset ( $ this -> _callbacks [ $ name ] [ $ prio ] ) ; } if ( empty ( $ this -> _callbacks [ $ name ] ) ) { unset ( $ this -> _callbacks [ $ name ] ) ; } } return $ this ; }
Removes the callback from the specific hook at the specific priority

@param string    $name     the hook name
@param function  $callback
@param integer   $prio

@return object
Removes the callback from the specific hook at the specific priority