This commit is contained in:
Kijin Sung 2016-02-01 16:31:58 +09:00
parent 74ac1e5141
commit 568b78959d

View file

@ -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;
} }