Interfaces Dolibarr toward foreign systems: Difference between revisions

Jump to navigation Jump to search
m
Line 158: Line 158:
function run_trigger($action,$object,$user,$lang,$conf)
function run_trigger($action,$object,$user,$lang,$conf)
{
{
       // Put here the code to execute
       // Put here code to execute after an action
       // Type of Dolibarr business event is stored in $action
       // The type of Dolibarr business event is stored into $action
       // Les données de l'action sont stockées dans $object
       // Data of action are stored into object $object
       // La configuration, utilisateur et langage sont dans $conf,$user et $lang
       // Setup, user and language are saved into $conf, $user and $lang
       <b>
       <b>
       if ($action == 'XXXXX_YYYYY')
       if ($action == 'XXXXX_YYYYY')

Navigation menu