1
0
Fork 0

add event action: duplicate events

This commit is contained in:
rabuzarus 2017-10-15 17:30:28 +02:00
commit 4584670af4
4 changed files with 37 additions and 23 deletions

View file

@ -591,6 +591,7 @@ function process_events($arr) {
// is a real event (no bithdays)
if (local_user() && local_user() == $rr['uid'] && $rr['type'] == 'event') {
$edit = ((! $rr['cid']) ? array(System::baseUrl() . '/events/event/' . $rr['id'], t('Edit event'), '', '') : null);
$copy = ((! $rr['cid']) ? array(System::baseUrl() . '/events/copy/' . $rr['id'], t('Duplicate event'), '', '') : null);
$drop = array(System::baseUrl() . '/events/drop/' . $rr['id'], t('Delete event'), '', '');
}
@ -614,6 +615,7 @@ function process_events($arr) {
'd' => $d,
'edit' => $edit,
'drop' => $drop,
'copy' => $copy,
'is_first' => $is_first,
'item' => $rr,
'html' => $html,