34 global $langs, $conf, $user;
37 $langs->loadLangs(array(
'categories',
'products'));
42 $head[$h][0] = DOL_URL_ROOT.
'/categories/viewcat.php?id='.$object->id.
'&type='.$type;
43 $head[$h][1] = $langs->trans(
"Category");
44 $head[$h][2] =
'card';
47 $head[$h][0] = DOL_URL_ROOT.
'/categories/photos.php?id='.$object->id.
'&type='.$type;
48 $head[$h][1] = $langs->trans(
"Photos");
49 $head[$h][2] =
'photos';
52 if (!empty($conf->global->MAIN_MULTILANGS))
54 $head[$h][0] = DOL_URL_ROOT.
'/categories/traduction.php?id='.$object->id.
'&type='.$type;
55 $head[$h][1] = $langs->trans(
"Translation");
56 $head[$h][2] =
'translation';
60 $head[$h][0] = DOL_URL_ROOT.
'/categories/info.php?id='.$object->id;
61 $head[$h][1] = $langs->trans(
"Info");
62 $head[$h][2] =
'info';
84 global $langs, $conf, $user;
86 $langs->load(
"categories");
91 $head[$h][0] = DOL_URL_ROOT.
'/categories/admin/categorie.php';
92 $head[$h][1] = $langs->trans(
"Setup");
93 $head[$h][2] =
'setup';
96 $head[$h][0] = DOL_URL_ROOT.
'/categories/admin/categorie_extrafields.php';
97 $head[$h][1] = $langs->trans(
"ExtraFieldsCategories");
98 $head[$h][2] =
'attributes_categories';
categories_prepare_head(Categorie $object, $type)
Prepare array with list of tabs.
Class to manage categories.
categoriesadmin_prepare_head()
Prepare array with list of tabs.
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode= 'add')
Complete or removed entries into a head array (used to build tabs).