29if (empty($conf) || !is_object($conf)) {
30 print
"Error, template page can't be called as URL";
35<!-- BEGIN PHP TEMPLATE extrafields_edit.tpl.php -->
39if (!isset($parameters)) {
40 $parameters = array();
43@phan-var-force CommonObject $object
44@phan-var-force string $action
45@phan-var-force Conf $conf
46@phan-var-force Translate $conf
47@phan-var-force array<string,mixed> $parameters
50$reshook = $hookmanager->executeHooks(
'formObjectOptions', $parameters,
$object, $action);
51print $hookmanager->resPrint;
54 if (isset($tpl_context)) {
55 $params[
'tpl_context'] = $tpl_context;
57 $params[
'cols'] = array_key_exists(
'colspanvalue', $parameters) ? $parameters[
'colspanvalue'] :
null;
59 print
$object->showOptionals($extrafields,
'edit', $params);
63<!-- END PHP TEMPLATE extrafields_edit.tpl.php -->
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object