Added add_calendar_non_list_actions hook to allow adding actions to calendar items that are not opened in a list. The last ones are added via the general add_row_actions hook.

This commit is contained in:
Alexandros Sigalas 2024-11-10 20:56:37 +02:00 committed by Ralf Becker
parent 9f70cd0199
commit 7723488be1

View File

@ -964,6 +964,16 @@ class calendar_uiviews extends calendar_ui
$actions['delete']['onExecute'] = 'javaScript:app.calendar.delete';
// allow other apps to add actions
foreach(Api\Hooks::process(array(
'location' => 'add_calendar_non_list_actions',
'template_name' => 'calendar_non_list',
), array('policy'), true) as $app => $data)
{
// todo: place new items based on group
if ($data) $actions = EGroupware\Api\Etemplate\Widget\Nextmatch::merge_actions_by_group((array)$actions, $data);
}
return $actions;
}