31 global $langs, $conf, $db;
33 $langs->load(
"knowledgemanagement");
36 $extrafields->fetch_name_optionals_label(
'knowledgemanagement_knowledgerecord');
41 $head[$h][0] = DOL_URL_ROOT.
'/admin/knowledgemanagement.php';
42 $head[$h][1] = $langs->trans(
"Setup");
43 $head[$h][2] =
'setup';
47 $head[$h][0] = DOL_URL_ROOT.
'/admin/knowledgerecord_extrafields.php';
48 $head[$h][1] = $langs->trans(
"ExtraFields");
49 $nbExtrafields = $extrafields->attributes[
'knowledgemanagement_knowledgerecord'][
'count'];
50 if ($nbExtrafields > 0) {
51 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
53 $head[$h][2] =
'extra';
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).