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';
42 if (empty($conf->global->MAIN_USE_ADVANCED_PERMS) || (!empty($conf->global->MAIN_USE_ADVANCED_PERMS) && $user->rights->mailing->mailing_advance->recipient)) {
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';
52 if (!empty($conf->global->EMAILING_USE_ADVANCED_SELECTOR)) {
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';
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).