31 global $langs, $conf, $db;
34 $extrafields->fetch_name_optionals_label(
'mrp_mo');
42 $head[$h][1] = $langs->trans(
"Settings");
43 $head[$h][2] =
'settings';
46 $head[$h][0] =
dol_buildpath(
"/admin/mrp_extrafields.php", 1);
47 $head[$h][1] = $langs->trans(
"ExtraFields");
48 $nbExtrafields = $extrafields->attributes[
'mrp_mo'][
'count'];
49 if ($nbExtrafields > 0) {
50 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
52 $head[$h][2] =
'mrp_extrafields';
55 $head[$h][0] =
dol_buildpath(
"/admin/mrp_production_extrafields.php", 1);
56 $head[$h][1] = $langs->trans(
"ExtraFieldsLines");
57 $head[$h][2] =
'mrp_production_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).