mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 13:02:15 +09:00
Simplify
This commit is contained in:
parent
74ac1e5141
commit
568b78959d
1 changed files with 1 additions and 6 deletions
|
|
@ -67,13 +67,8 @@ class moduleController extends module
|
||||||
* @param string $called_position
|
* @param string $called_position
|
||||||
* @param callable $callback_function
|
* @param callable $callback_function
|
||||||
*/
|
*/
|
||||||
function insertTriggerFunction($trigger_name, $called_position, $callback_function)
|
function addTriggerFunction($trigger_name, $called_position, $callback_function)
|
||||||
{
|
{
|
||||||
if(!isset($GLOBALS['__trigger_functions__']))
|
|
||||||
{
|
|
||||||
$GLOBALS['__trigger_functions__'] = array();
|
|
||||||
}
|
|
||||||
|
|
||||||
$GLOBALS['__trigger_functions__'][$trigger_name][$called_position][] = $callback_function;
|
$GLOBALS['__trigger_functions__'][$trigger_name][$called_position][] = $callback_function;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue