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, $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';
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $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).
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
adminProductAttributePrepareHead()
Prepare array with list of tabs.
productAttributePrepareHead($object)
Prepare array with list of tabs.