//dol_syslog("Call method ".$method." of class ".get_class($actionclassinstance).", module=".$module.", hooktype=".$hooktype, LOG_DEBUG);
$result=$actionclassinstance->$method($parameters,$object,$action,$this);// $object and $action can be changed by method ($object->id during creation for example or $action to go back to other action for example)
$resaction=$actionclassinstance->$method($parameters,$object,$action,$this);// $object and $action can be changed by method ($object->id during creation for example or $action to go back to other action for example)
// TODO dead code to remove (do not enable this, but fix hook instead): result must not be a string. we must use $actionclassinstance->resprints to return a string
dol_syslog('Error: Bug into hook '.$method.' of module class '.get_class($actionclassinstance).'. Method must not return a string but an int (0=OK, 1=Replace, -1=KO) and set string into ->resprints',LOG_ERR);