36 $langs->load(
"products");
41 $head[$h][0] = DOL_URL_ROOT.
'/variants/card.php?id='.
$object->id;
42 $head[$h][1] = $langs->trans(
"ProductAttribute");
43 $head[$h][2] =
'card';
64 global $langs,
$conf, $extrafields;
66 $extrafields->fetch_name_optionals_label(
'product_attribute');
67 $extrafields->fetch_name_optionals_label(
'product_attribute_value');
69 $langs->load(
"products");
74 $head[$h][0] = DOL_URL_ROOT.
'/variants/admin/admin.php';
75 $head[$h][1] = $langs->trans(
"ProductAttribute");
76 $head[$h][2] =
'admin';
79 $head[$h][0] = DOL_URL_ROOT.
'/variants/admin/product_attribute_extrafields.php';
80 $head[$h][1] = $langs->trans(
"ProductAttributeExtrafields");
81 $nbExtrafields = $extrafields->attributes[
'product_attribute'][
'count'];
82 if ($nbExtrafields > 0) {
83 $head[$h][1] .=
'<span class="badge marginleftonlyshort">' . $nbExtrafields .
'</span>';
85 $head[$h][2] =
'product_attribute';
88 $head[$h][0] = DOL_URL_ROOT.
'/variants/admin/product_attribute_value_extrafields.php';
89 $head[$h][1] = $langs->trans(
"ProductAttributeValueExtrafields");
90 $nbExtrafields = $extrafields->attributes[
'product_attribute_value'][
'count'];
91 if ($nbExtrafields > 0) {
92 $head[$h][1] .=
'<span class="badge marginleftonlyshort">' . $nbExtrafields .
'</span>';
94 $head[$h][2] =
'product_attribute_value';
if(! $sortfield) if(! $sortorder) $object
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).
adminProductAttributePrepareHead()
Prepare array with list of tabs.
productAttributePrepareHead($object)
Prepare array with list of tabs.