Triggers system: Difference between revisions

Jump to navigation Jump to search
m
(→‎Manage and create a new trigger's action: Add new method for calling trigger)
Line 121: Line 121:
       // Data of action are stored into object $object
       // Data of action are stored into object $object
       // Setup, user and language are saved into $conf, $user and $lang
       // Setup, user and language are saved into $conf, $user and $lang
      <b>
       if ($action == 'XXXXX_YYYYY')
       if ($action == 'XXXXX_YYYYY')
       {
       {
           dol_syslog("Trigger for action '$action' launched. id=".$object->id);
           dol_syslog("Trigger for action '$action' launched. id=".$object->id);
       }
       }
      </b>
       elseif ($action == 'COMPANY_CREATE')
       elseif ($action == 'COMPANY_CREATE')
       {
       {

Navigation menu