1<!-- file card-view-actions-buttons.tpl.php -->
7 print
"Error, template page can't be called as URL";
10'@phan-var-force Context $context';
11'@phan-var-force AbstractCardController $this';
21$formCard = $this->formCard;
23$url =
$context->getControllerUrl(
$context->controller).
'&id=' . $formCard->object->id;
27<?php
if ($formCard->action !=
'presend' && $formCard->action !=
'editline') { ?>
28<div
id=
"actions_buttons">
30 $parameters = array();
31 $reshook = $hookmanager->executeHooks(
'addMoreActionsButtons', $parameters,
$context);
33 $context->setEventMessages($hookmanager->error, $hookmanager->errors,
'errors');
34 } elseif (empty($reshook)) {
36 if ($formCard->permissiontoadd) { ?>
37 <a href=
"<?php print $url . "&action=edit
" ?>" role=
"button"><?php print $langs->trans(
'Modify') ?></a>
$context
@method int call_trigger(string $triggerName, ?User $user)