mirror of
https://github.com/friendica/friendica
synced 2025-04-24 03:50:12 +00:00
Merge pull request #3797 from rabuzarus/20171015_-_duplicate_event
add event action: duplicate events
This commit is contained in:
commit
d60f96f0e1
10 changed files with 157 additions and 116 deletions
|
@ -627,6 +627,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'), '', '');
|
||||
}
|
||||
|
||||
|
@ -650,6 +651,7 @@ function process_events($arr) {
|
|||
'd' => $d,
|
||||
'edit' => $edit,
|
||||
'drop' => $drop,
|
||||
'copy' => $copy,
|
||||
'is_first' => $is_first,
|
||||
'item' => $rr,
|
||||
'html' => $html,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue