diff options
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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); |