36 $langs->load(
"agenda");
41 $head[$h][0] = DOL_URL_ROOT .
'/bookcal/availabilities_card.php?id=' .
$object->id;
42 $head[$h][1] = $langs->trans(
"Card");
43 $head[$h][2] =
'card';
51 if (isset(
$object->fields[
'note_public']) || isset(
$object->fields[
'note_private'])) {
53 if (!empty(
$object->note_private)) {
56 if (!empty(
$object->note_public)) {
59 $head[$h][0] = DOL_URL_ROOT .
'/bookcal/availabilities_note.php?id=' .
$object->id;
60 $head[$h][1] = $langs->trans(
'Notes');
62 $head[$h][1] .= (!
getDolGlobalString(
'MAIN_OPTIMIZEFORTEXTBROWSER') ?
'<span class="badge marginleftonlyshort">' . $nbNote .
'</span>' :
'');
64 $head[$h][2] =
'note';
if(! $sortfield) if(! $sortorder) $object
availabilitiesPrepareHead($object)
Prepare array of tabs for Availabilities.
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).
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.