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");
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';
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
Class to manage emailings module.
emailing_prepare_head(Mailing $object)
Prepare array with list of tabs.
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).
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.