32 global $user, $langs, $conf;
37 $head[$h][0] = DOL_URL_ROOT.
"/comm/mailing/card.php?id=".$object->id;
38 $head[$h][1] = $langs->trans(
"MailCard");
39 $head[$h][2] =
'card';
43 $head[$h][0] = DOL_URL_ROOT.
"/comm/mailing/cibles.php?id=".$object->id;
44 $head[$h][1] = $langs->trans(
"MailRecipients");
45 if ($object->nbemail > 0) {
46 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$object->nbemail.
'</span>';
48 $head[$h][2] =
'targets';
53 $head[$h][0] = DOL_URL_ROOT.
"/comm/mailing/advtargetemailing.php?id=".$object->id;
54 $head[$h][1] = $langs->trans(
"MailAdvTargetRecipients");
55 $head[$h][2] =
'advtargets';
59 $head[$h][0] = DOL_URL_ROOT.
"/comm/mailing/info.php?id=".$object->id;
60 $head[$h][1] = $langs->trans(
"Info");
61 $head[$h][2] =
'info';
64 $head[$h][0] = DOL_URL_ROOT.
"/comm/mailing/note.php?id=".$object->id;
65 $head[$h][1] = $langs->trans(
"Note");
66 $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).