adding hook for addMoreActionsbuttons

This commit is contained in:
jean 2014-09-25 09:26:32 +02:00
parent 6149994b43
commit e9374e8c08

View File

@ -1814,6 +1814,11 @@ elseif (! empty($object->id))
/** /**
* Boutons actions * Boutons actions
*/ */
$parameters = array();
$reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action); // Note that $action and $object may have been
// modified by hook
if (empty($reshook))
{
if ($user->societe_id == 0 && $action != 'edit_line' && $action != 'delete') if ($user->societe_id == 0 && $action != 'edit_line' && $action != 'delete')
{ {
print '<div class="tabsAction">'; print '<div class="tabsAction">';
@ -1907,6 +1912,7 @@ elseif (! empty($object->id))
print "</div>"; print "</div>";
} }
}
print "<br>"; print "<br>";