33 global $langs,
$conf, $db;
36 $extrafields->fetch_name_optionals_label(
'actioncomm');
37 $extrafields->fetch_name_optionals_label(
'eventorganization_conferenceorboothattendee');
39 $langs->load(
"eventorganization");
44 $head[$h][0] = DOL_URL_ROOT.
'/admin/eventorganization.php';
45 $head[$h][1] = $langs->trans(
"Settings");
46 $head[$h][2] =
'settings';
50 $head[$h][0] = DOL_URL_ROOT.
'/admin/eventorganization_confbooth_extrafields.php';
51 $head[$h][1] = $langs->trans(
"ExtraFields").
" (".$langs->trans(
"EventOrganizationConfOrBooth").
")";
52 $nbExtrafields = $extrafields->attributes[
'actioncomm'][
'count'];
53 if ($nbExtrafields > 0) {
54 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
56 $head[$h][2] =
'eventorganization_extrafields';
59 $head[$h][0] = DOL_URL_ROOT.
'/admin/eventorganization_confboothattendee_extrafields.php';
60 $head[$h][1] = $langs->trans(
"ExtraFields").
" (".$langs->trans(
"Attendees").
")";
61 $nbExtrafields = $extrafields->attributes[
'eventorganization_conferenceorboothattendee'][
'count'];
62 if ($nbExtrafields > 0) {
63 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
65 $head[$h][2] =
'conferenceorboothattendee_extrafields';
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).