diff options
Diffstat (limited to 'start.php')
| -rw-r--r-- | start.php | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/start.php b/start.php deleted file mode 100644 index 744a3ef84..000000000 --- a/start.php +++ /dev/null @@ -1,67 +0,0 @@ -<?php -/** - * Elgg friend request plugin. - * - * @package ElggFriendRequest - */ - -elgg_register_event_handler('init', 'system', 'friendrequest_init'); - -function friendrequest_init() { - - //This will let users view their friend requests - elgg_register_page_handler('friendrequests', 'friendrequest_page_handler'); - - if (elgg_is_logged_in()) { - $params = array( - 'name' => 'friendrequests', - 'text' => elgg_echo('friendrequest'), - 'href' => "friendrequests", - 'contexts' => array('friends'), - ); - elgg_register_menu_item('page', $params); - } - - $actions_dir = elgg_get_plugins_path().'friendrequest/actions/friendrequest'; - elgg_register_action('friendrequest/approve', "$actions_dir/approve.php"); - elgg_register_action('friendrequest/decline', "$actions_dir/decline.php"); - - //We need to override the friend remove action to remove the relationship we created - elgg_register_action('friends/remove', "$actions_dir/removefriend.php"); - - //Regular Elgg engine sends out an email via an event. The 400 priority will let us run first. - //Then we return false to stop the event chain. The normal event handler will never get to run. - //elgg_register_event_handler('create', 'friend', 'friendrequest_event_create_friend', 400); - - //Handle our add action event: - //elgg_register_event_handler('create', 'friendrequest', 'friendrequest_event_create_friendrequest'); - -} - -function friendrequest_page_handler($page){ - - //Keep the URLs uniform: - if (isset($page[0])) { - forward("friendrequests"); - } - - elgg_push_context('friends'); - - $params = array( - 'title' => elgg_echo('friendrequest'), - 'filter' => '', - ); - - $body = elgg_view_layout('content', $params); - - echo elgg_view_page($params['title'], $body); - return true; -} - -function friendrequest_event_create_friend(){ - -} - -function friendrequest_event_create_friendrequest(){ - -} |
