33 global $conf, $db, $langs;
36 $extrafields->fetch_name_optionals_label(
'workstation_workstation');
38 $langs->load(
"workstation");
42 $head[$h][0] = DOL_URL_ROOT.
"/admin/workstation.php";
43 $head[$h][1] = $langs->trans(
"Settings");
44 $head[$h][2] =
'settings';
47 $head[$h][0] = DOL_URL_ROOT.
"/admin/workstation_extrafields.php";
48 $head[$h][1] = $langs->trans(
"ExtraFields");
49 $nbExtrafields = $extrafields->attributes[
'workstation_workstation'][
'count'];
50 if ($nbExtrafields > 0) {
51 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
53 $head[$h][2] =
'workstation_extrafields';
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode='add', $filterorigmodule='')
Complete or removed entries into a head array (used to build tabs).