public function run_hooks($hook_id, $args = array())
    {
        // If plugins are disabled, do not run
        if ($this->app['settings']['sonic.plugins_enabled'] === FALSE) {
            return FALSE;
        }

        // Run hooks associated with that event
        foreach ($this->app['plugins'] as $plugin_id => $plugin) {
            if (is_callable(array($plugin, $hook_id))) {
                call_user_func_array(array($plugin, $hook_id), $args);
            }
        }
        return TRUE;
    }
public function run_hooks($hook_id, $args = array())
    {
        // If plugins are disabled, do not run
        if ($this->app['settings']['sonic.plugins_enabled'] === FALSE) {
            return FALSE;
        }

        // Run hooks associated with that event
        foreach ($this->app['plugins'] as $plugin_id => $plugin) {
            if (is_callable(array($plugin, $hook_id))) {
                call_user_func_array(array($plugin, $hook_id), $args);
            }
        }
        return TRUE;
    }
public function run_hooks ( $ hook_id , $ args = array ( ) ) { // If plugins are disabled, do not run if ( $ this -> app [ 'settings' ] [ 'sonic.plugins_enabled' ] === FALSE ) { return FALSE ; } // Run hooks associated with that event foreach ( $ this -> app [ 'plugins' ] as $ plugin_id => $ plugin ) { if ( is_callable ( array ( $ plugin , $ hook_id ) ) ) { call_user_func_array ( array ( $ plugin , $ hook_id ) , $ args ) ; } } return TRUE ; }
Runs all hooks registered to the specified hook name

@param  string  $hook_id
@param  string  $args
@return boolean
Runs all hooks registered to the specified hook name