31 global $db, $langs, $conf;
33 $langs->load(
"webhook@webhook");
38 $head[$h][0] =
dol_buildpath(
"/webhook/target_card.php", 1).
'?id='.$object->id;
39 $head[$h][1] = $langs->trans(
"Card");
40 $head[$h][2] =
'card';
43 if (isset($object->fields[
'note_public']) || isset($object->fields[
'note_private'])) {
45 if (!empty($object->note_private)) {
48 if (!empty($object->note_public)) {
51 $head[$h][0] =
dol_buildpath(
'/webhook/target_note.php', 1).
'?id='.$object->id;
52 $head[$h][1] = $langs->trans(
'Notes');
54 $head[$h][1] .= (empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER) ?
'<span class="badge marginleftonlyshort">'.$nbNote.
'</span>' :
'');
56 $head[$h][2] =
'note';
targetPrepareHead($object)
Prepare array of tabs for Target.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode= 'add')
Complete or removed entries into a head array (used to build tabs).