35 $langs->load(
"webhook@webhook");
40 $head[$h][0] =
dolBuildUrl(DOL_DOCUMENT_ROOT.
'/webhook/triggerhistory_card.php', [
'id' =>
$object->id]);
41 $head[$h][1] = $langs->trans(
"Card");
42 $head[$h][2] =
'card';
45 if (isset(
$object->fields[
'note_public']) || isset(
$object->fields[
'note_private'])) {
47 if (!empty(
$object->note_private)) {
50 if (!empty(
$object->note_public)) {
53 $head[$h][0] =
dolBuildUrl(DOL_DOCUMENT_ROOT.
'/webhook/triggerhistory_note.php', [
'id' =>
$object->id]);
54 $head[$h][1] = $langs->trans(
'Notes');
56 $head[$h][1] .= (!
getDolGlobalInt(
'MAIN_OPTIMIZEFORTEXTBROWSER') ?
'<span class="badge marginleftonlyshort">'.$nbNote.
'</span>' :
'');
58 $head[$h][2] =
'note';
if(! $sortfield) if(! $sortorder) $object
dolBuildUrl($url, $params=[], $addtoken=false, $anchor='')
Return path of url.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
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.