diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2011-06-28 23:13:49 -0700 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2011-06-28 23:13:49 -0700 |
commit | 0a013cd9833a20d3b6334d80dba581bbbb2ce756 (patch) | |
tree | bad977e423a6d1193d362295611fe4472c2373af /pages/review_requests.php | |
parent | 1dd01c7ff9685995b4bc9de0ceeb7856086c3f40 (diff) | |
parent | 29792a9858484266952a53268e4fd0dd29b2f4a5 (diff) | |
download | elgg-0a013cd9833a20d3b6334d80dba581bbbb2ce756.tar.gz elgg-0a013cd9833a20d3b6334d80dba581bbbb2ce756.tar.bz2 |
Merge pull request #1 from cash/master
moved code into base directory
Diffstat (limited to 'pages/review_requests.php')
-rw-r--r-- | pages/review_requests.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pages/review_requests.php b/pages/review_requests.php new file mode 100644 index 000000000..fc6c3726a --- /dev/null +++ b/pages/review_requests.php @@ -0,0 +1,33 @@ +<?php + +gatekeeper(); + +$event_id = get_input('event_id',0); + +$title = elgg_echo('event_calendar:review_requests_title'); + +$event = get_entity($event_id); +$user_id = get_loggedin_userid(); + +if (event_calendar_personal_can_manage($event,$user_id)) { + $requests = elgg_get_entities_from_relationship( + array( + 'relationship' => 'event_calendar_request', + 'relationship_guid' => $event_id, + 'inverse_relationship' => TRUE, + 'limit' => 9999) + ); + if ($requests) { + $body = elgg_view('event_calendar/review_requests',array('requests' => $requests, 'entity' => $event)); + //$body = elgg_view('page_elements/contentwrapper',array('body'=>$body)); + } else { + $body = elgg_view('page_elements/contentwrapper',array('body'=>elgg_echo('event_calendar:review_requests_request_none'))); + } +} else { + $body = elgg_view('page_elements/contentwrapper',array('body'=>elgg_echo('event_calendar:review_requests_error'))); +} + +$body = elgg_view_layout('two_column_left_sidebar', '', elgg_view_title($title).$body); + +page_draw($title, $body); +?>
\ No newline at end of file |