Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: class_plugins.php 5325 2011-01-13 16:53:42Z Tomm $
| * $Id: class_plugins.php 5624 2011-10-02 19:07:56Z ralgith $
|
*/
class pluginSystem
| */
class pluginSystem
|
Zeile 97 | Zeile 97 |
---|
require_once $hook['file']; }
|
require_once $hook['file']; }
|
$returnargs = call_user_func_array($hook['function'], array(&$arguments));
| $func = $hook['function']; $returnargs = $func($arguments);
|
if($returnargs)
| if($returnargs)
|
Zeile 112 | Zeile 113 |
---|
} /**
|
} /**
|
* DEPRECIATED * Run the hooks that have plugins but passes REQUIRED argument by reference. * This is a separate function to provide backwards compat with PHP 4.
| * Run the hooks that have plugins but passes REQUIRED argument that is received by reference. * This argument must be received by reference in the plugin file! * This is a separate function to allow by reference calls for things you cannot use the $var = $plugins->run_hooks("hook_name", $var) syntax.
|
* * @param string The name of the hook that is run. * @param string The argument for the hook that is run - passed by reference. The passed value MUST be a variable
| * * @param string The name of the hook that is run. * @param string The argument for the hook that is run - passed by reference. The passed value MUST be a variable
|
Zeile 138 | Zeile 139 |
---|
require_once $hook['file']; }
|
require_once $hook['file']; }
|
call_user_func_array($hook['function'], array(&$arguments));
| $func = $hook['function']; $returnargs = $func($arguments);
|
} } } $this->current_hook = '';
|
} } } $this->current_hook = '';
|
}
| }
|
/** * Remove a specific hook.
| /** * Remove a specific hook.
|