mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 23:29:31 +01:00
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:
parent
9f70cd0199
commit
7723488be1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user