32 global $langs, $conf, $db;
35 $extrafields->fetch_name_optionals_label(
'mrp_mo');
42 $head[$h][0] = DOL_URL_ROOT .
'/admin/mrp.php';
43 $head[$h][1] = $langs->trans(
"Settings");
44 $head[$h][2] =
'settings';
47 $head[$h][0] = DOL_URL_ROOT .
'/admin/mrp_extrafields.php';
48 $head[$h][1] = $langs->trans(
"ExtraFields");
49 $nbExtrafields = $extrafields->attributes[
'mrp_mo'][
'count'];
50 if ($nbExtrafields > 0) {
51 $head[$h][1] .=
'<span class="badge marginleftonlyshort">' . $nbExtrafields .
'</span>';
53 $head[$h][2] =
'mrp_extrafields';
56 $head[$h][0] = DOL_URL_ROOT .
'/admin/mrp_production_extrafields.php';
57 $head[$h][1] = $langs->trans(
"ExtraFieldsLines");
58 $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).