'."\n";
- $parameters=array();
- $reshook=$hookmanager->executeHooks('addMoreActionsButtons',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
- if (empty($reshook))
- {
- $at_least_one_email_contact = false;
- $TContact = $object->contact_array_objects();
- foreach ($TContact as &$contact)
+ $parameters=array();
+ $reshook=$hookmanager->executeHooks('addMoreActionsButtons',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
+ if (empty($reshook))
{
- if (!empty($contact->email))
+ $at_least_one_email_contact = false;
+ $TContact = $object->contact_array_objects();
+ foreach ($TContact as &$contact)
{
- $at_least_one_email_contact = true;
- break;
+ if (!empty($contact->email))
+ {
+ $at_least_one_email_contact = true;
+ break;
+ }
}
+
+ if (! empty($object->email) || $at_least_one_email_contact)
+ {
+ $langs->load("mails");
+ print '
';
+ }
+ else
+ {
+ $langs->load("mails");
+ print '
';
+ }
+
+ if ($user->rights->societe->creer)
+ {
+ print '
'."\n";
+ }
+
+ if ($user->rights->societe->supprimer)
+ {
+ print '
';
+ }
+
+ if ($user->rights->societe->supprimer)
+ {
+ if ($conf->use_javascript_ajax && empty($conf->dol_use_jmobile)) // We can't use preloaded confirm form with jmobile
+ {
+ print '
'.$langs->trans('Delete').'
'."\n";
+ }
+ else
+ {
+ print '
'."\n";
+ }
+ }
}
- if (! empty($object->email) || $at_least_one_email_contact)
- {
- $langs->load("mails");
- print '
';
- }
- else
- {
- $langs->load("mails");
- print '
';
- }
-
- if ($user->rights->societe->creer)
- {
- print '
'."\n";
- }
-
- if ($user->rights->societe->supprimer)
- {
- print '
';
- }
-
- if ($user->rights->societe->supprimer)
- {
- if ($conf->use_javascript_ajax && empty($conf->dol_use_jmobile)) // We can't use preloaded confirm form with jmobile
- {
- print '
'.$langs->trans('Delete').'
'."\n";
- }
- else
- {
- print '
'."\n";
- }
- }
- }
-
- print '