64 global $langs, $conf, $db;
67 $extrafields->fetch_name_optionals_label(
'product_attribute');
68 $extrafields->fetch_name_optionals_label(
'product_attribute_value');
70 $langs->load(
"products");
75 $head[$h][0] = DOL_URL_ROOT.
'/variants/admin/admin.php';
76 $head[$h][1] = $langs->trans(
"ProductAttribute");
77 $head[$h][2] =
'admin';
80 $head[$h][0] = DOL_URL_ROOT.
'/variants/admin/product_attribute_extrafields.php';
81 $head[$h][1] = $langs->trans(
"ProductAttributeExtrafields");
82 $nbExtrafields = $extrafields->attributes[
'product_attribute'][
'count'];
83 if ($nbExtrafields > 0) {
84 $head[$h][1] .=
'<span class="badge marginleftonlyshort">' . $nbExtrafields .
'</span>';
86 $head[$h][2] =
'product_attribute';
89 $head[$h][0] = DOL_URL_ROOT.
'/variants/admin/product_attribute_value_extrafields.php';
90 $head[$h][1] = $langs->trans(
"ProductAttributeValueExtrafields");
91 $nbExtrafields = $extrafields->attributes[
'product_attribute_value'][
'count'];
92 if ($nbExtrafields > 0) {
93 $head[$h][1] .=
'<span class="badge marginleftonlyshort">' . $nbExtrafields .
'</span>';
95 $head[$h][2] =
'product_attribute_value';
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).