aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2011-12-08 19:15:33 +0100
committerSem <sembrestels@riseup.net>2011-12-08 19:15:33 +0100
commit5c4dc1474ae89437f52101039f1452c267c252a7 (patch)
treed79e54a330b9682f635b21bafbce58157fe45650 /start.php
parentf14c7d977d57e7a2cca8bff8931a56fe405cf50c (diff)
downloadelgg-5c4dc1474ae89437f52101039f1452c267c252a7.tar.gz
elgg-5c4dc1474ae89437f52101039f1452c267c252a7.tar.bz2
Added friend/remove and friendrequest/decline actions.
Diffstat (limited to 'start.php')
-rw-r--r--start.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/start.php b/start.php
index 0b38a341d..e044cc9b5 100644
--- a/start.php
+++ b/start.php
@@ -22,15 +22,14 @@ function friendrequest_init() {
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
$actions_dir = elgg_get_plugins_path().'friendrequest/actions/friends';
elgg_register_action('friends/add', "$actions_dir/add.php");
elgg_register_action('friends/remove', "$actions_dir/remove.php");
+ $actions_dir = elgg_get_plugins_path().'friendrequest/actions/friendrequest';
+ elgg_register_action('friendrequest/decline', "$actions_dir/decline.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);