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))
44 $head[$h][0] = DOL_URL_ROOT.
"/comm/mailing/cibles.php?id=".$object->id;
45 $head[$h][1] = $langs->trans(
"MailRecipients");
46 if ($object->nbemail > 0) $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$object->nbemail.
'</span>';
47 $head[$h][2] =
'targets';
51 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';
emailing_prepare_head(Mailing $object)
Prepare array with list of tabs.
Class to manage emailings module.
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode= 'add')
Complete or removed entries into a head array (used to build tabs).