27if (empty($conf) || !is_object($conf)) {
28 print
"Error, template page can't be called as URL";
33@phan-var-force CommonObject $object
34@phan-var-force string $action
35@phan-var-force Conf $conf
36@phan-var-force Translate $langs
37@phan-var-force array<string,mixed> $parameters
41<!-- BEGIN PHP TEMPLATE extrafields_edit.tpl.php -->
45if (!isset($parameters)) {
46 $parameters = array();
49@phan-var-force CommonObject $object
50@phan-var-force string $action
51@phan-var-force Conf $conf
52@phan-var-force Translate $conf
53@phan-var-force array<string,mixed> $parameters
56$reshook = $hookmanager->executeHooks(
'formObjectOptions', $parameters,
$object, $action);
57print $hookmanager->resPrint;
60 if (isset($tpl_context)) {
61 $params[
'tpl_context'] = $tpl_context;
63 $params[
'cols'] = array_key_exists(
'colspanvalue', $parameters) ? $parameters[
'colspanvalue'] :
null;
65 print
$object->showOptionals($extrafields,
'edit', $params);
69<!-- END PHP TEMPLATE extrafields_edit.tpl.php -->
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object