32 global $langs, $conf, $db;
35 $extrafields->fetch_name_optionals_label(
'actioncomm');
36 $extrafields->fetch_name_optionals_label(
'eventorganization_conferenceorboothattendee');
38 $langs->load(
"eventorganization");
43 $head[$h][0] = DOL_URL_ROOT.
'/admin/eventorganization.php';
44 $head[$h][1] = $langs->trans(
"Settings");
45 $head[$h][2] =
'settings';
49 $head[$h][0] = DOL_URL_ROOT.
'/admin/eventorganization_confbooth_extrafields.php';
50 $head[$h][1] = $langs->trans(
"ExtraFields").
" (".$langs->trans(
"EventOrganizationConfOrBooth").
")";
51 $nbExtrafields = $extrafields->attributes[
'actioncomm'][
'count'];
52 if ($nbExtrafields > 0) {
53 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
55 $head[$h][2] =
'eventorganization_extrafields';
58 $head[$h][0] = DOL_URL_ROOT.
'/admin/eventorganization_confboothattendee_extrafields.php';
59 $head[$h][1] = $langs->trans(
"ExtraFields").
" (".$langs->trans(
"Attendees").
")";
60 $nbExtrafields = $extrafields->attributes[
'eventorganization_conferenceorboothattendee'][
'count'];
61 if ($nbExtrafields > 0) {
62 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
64 $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).