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