Triggers system: Difference between revisions

Jump to navigation Jump to search
m
Tag: 2017 source edit
Tag: 2017 source edit
Line 112: Line 112:
<syntaxHighlight lang="php">
<syntaxHighlight lang="php">
// Call trigger
// Call trigger
$result = $this->call_trigger('XXXXX_YYYYY', $user);
$result = $this->call_trigger('CODE_TRIGGER', $user);
if ($result <0) $error++;
if ($result <0) $error++;
// End call triggers
// End call triggers
Line 122: Line 122:
// Call trigger
// Call trigger
$this->context = array('paramX'=>$valueX, 'anyparamofyourchoice'=>$anyvalue);
$this->context = array('paramX'=>$valueX, 'anyparamofyourchoice'=>$anyvalue);
$result=$this->call_trigger('XXXXX_YYYYY',$user);
$result = $this->call_trigger('CODE_TRIGGER',$user);
if ($result < 0) $error++;           
if ($result < 0) $error++;           
// End call triggers
// End call triggers

Navigation menu