39 print
"Error, template page can't be called as URL";
44@phan-var-force CommonObject $object
45@phan-var-force string $action
46@phan-var-force Conf $conf
47@phan-var-force Translate $langs
48@phan-var-force array<string,mixed> $parameters
52<!-- BEGIN PHP TEMPLATE extrafields_edit.tpl.php -->
56if (!isset($parameters)) {
57 $parameters = array();
60@phan-var-force CommonObject $object
61@phan-var-force string $action
62@phan-var-force Conf $conf
63@phan-var-force Translate $conf
64@phan-var-force array<string,mixed> $parameters
67$reshook = $hookmanager->executeHooks(
'formObjectOptions', $parameters,
$object, $action);
68print $hookmanager->resPrint;
71 if (isset($tpl_context)) {
72 $params[
'tpl_context'] = $tpl_context;
74 $params[
'cols'] = array_key_exists(
'colspanvalue', $parameters) ? $parameters[
'colspanvalue'] :
null;
76 print
$object->showOptionals($extrafields,
'edit', $params);
80<!-- END PHP TEMPLATE extrafields_edit.tpl.php -->
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...