From 29792a9858484266952a53268e4fd0dd29b2f4a5 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Tue, 28 Jun 2011 18:12:41 -0400 Subject: moved the code into the base directory so that it is easier to work with --- actions/addtocalendar.php | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 actions/addtocalendar.php (limited to 'actions/addtocalendar.php') diff --git a/actions/addtocalendar.php b/actions/addtocalendar.php new file mode 100644 index 000000000..cb83aab88 --- /dev/null +++ b/actions/addtocalendar.php @@ -0,0 +1,36 @@ +site->guid, elgg_echo('event_calendar:add_users_notify:subject'), + sprintf( + elgg_echo('event_calendar:add_users_notify:body'), + $user->name, + $event->title, + $event->getURL() + ) + ); + system_message(elgg_echo('event_calendar:request_approved')); + + } +} else { + register_error(elgg_echo('event_calendar:review_requests_error')); +} + +forward($_SERVER['HTTP_REFERER']); -- cgit v1.2.3