SFAPIclient/Requests/Hooks.php
public function dispatch($hook, $parameters = array()) {
		if (empty($this->hooks[$hook])) {
			return false;
		}

		foreach ($this->hooks[$hook] as $priority => $hooked) {
			foreach ($hooked as $callback) {
				call_user_func_array($callback, $parameters);
			}
		}

		return true;
	}
public function dispatch($hook, $parameters = array()) {
		if (empty($this->hooks[$hook])) {
			return false;
		}

		foreach ($this->hooks[$hook] as $priority => $hooked) {
			foreach ($hooked as $callback) {
				call_user_func_array($callback, $parameters);
			}
		}

		return true;
	}
public function dispatch ( $ hook , $ parameters = array ( ) ) { if ( empty ( $ this -> hooks [ $ hook ] ) ) { return false ; } foreach ( $ this -> hooks [ $ hook ] as $ priority => $ hooked ) { foreach ( $ hooked as $ callback ) { call_user_func_array ( $ callback , $ parameters ) ; } } return true ; }
Dispatch a message

@param string $hook Hook name
@param array $parameters Parameters to pass to callbacks
@return boolean Successfulness
Dispatch a message