32 global $db, $langs, $conf;
34 $langs->load(
"webhook@webhook");
36 $showtabofpagecontact = 0;
37 $showtabofpagenote = 1;
38 $showtabofpagedocument = 0;
39 $showtabofpageagenda = 0;
45 $head[$h][1] = $langs->trans(
"Card");
46 $head[$h][2] =
'card';
56 if (isset(
$object->fields[
'note_public']) || isset(
$object->fields[
'note_private'])) {
58 if (!empty(
$object->note_private)) {
61 if (!empty(
$object->note_public)) {
65 $head[$h][1] = $langs->trans(
'Notes');
67 $head[$h][1] .= (!
getDolGlobalInt(
'MAIN_OPTIMIZEFORTEXTBROWSER') ?
'<span class="badge marginleftonlyshort">'.$nbNote.
'</span>' :
'');
69 $head[$h][2] =
'note';
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).
triggerhistoryPrepareHead($object)
Prepare array of tabs for.