if (is_array($includeuserlisttmp) && count($includeuserlisttmp) > 0) { foreach ($includeuserlisttmp as $usertmp) { $includeuserlist[] = $usertmp->id; } } } // fetch optionals attributes and labels $extralabels = $extrafields->fetch_name_optionals_label($object->table_element); // Load object if ($id > 0) { $ret = $object->fetch($id); if ($ret < 0) { setEventMessages(null, $object->errors, 'errors'); } if ($ret > 0) { $ret = $object->fetch_thirdparty(); } if ($ret < 0) { setEventMessages(null, $object->errors, 'errors'); } } // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array $hookmanager->initHooks(array('leadcard')); /* * Actions */ $parameters = array(); $reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks if ($action == "add") { $error = 0;