diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-01 11:32:39 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-01 11:32:39 +0000 |
commit | 3cfad8ca8394976823bbacb728821ca371dfd6d8 (patch) | |
tree | 2340be281845fbae688986c7129b84c26e913a0b /engine | |
parent | df9d347e7d5a316a7f5c85ba284ea68c26fe6d2c (diff) | |
download | elgg-3cfad8ca8394976823bbacb728821ca371dfd6d8.tar.gz elgg-3cfad8ca8394976823bbacb728821ca371dfd6d8.tar.bz2 |
Fixes #3231 welcome back, members plugin
git-svn-id: http://code.elgg.org/elgg/trunk@8895 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/users.php | 42 |
1 files changed, 7 insertions, 35 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index 638e96aab..4c28acc87 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -1419,29 +1419,6 @@ function elgg_profile_page_handler($page) { } /** - * Members page handler - * - * @param array $page url segments - */ -function elgg_members_page_handler($page) { - global $CONFIG; - - if (!isset($page[0])) { - $page[0] = 'newest'; - } - - $vars = array(); - $vars['page'] = $page[0]; - - if ($page[0] == 'search') { - $vars['search_type'] = $page[1]; - require_once("{$CONFIG->path}pages/members/search.php"); - } else { - require_once("{$CONFIG->path}pages/members/index.php"); - } -} - -/** * Sets up user-related menu items * * @return void @@ -1525,7 +1502,6 @@ function users_pagesetup() { * @return void */ function users_init() { - global $CONFIG; elgg_register_page_handler('friends', 'friends_page_handler'); elgg_register_page_handler('friendsof', 'friends_of_page_handler'); @@ -1533,20 +1509,16 @@ function users_init() { elgg_register_page_handler('register', 'registration_page_handler'); elgg_register_page_handler('resetpassword', 'elgg_user_resetpassword_page_handler'); elgg_register_page_handler('login', 'elgg_user_login_page_handler'); - elgg_register_page_handler('members', 'elgg_members_page_handler'); elgg_register_page_handler('avatar', 'elgg_avatar_page_handler'); elgg_register_page_handler('profile', 'elgg_profile_page_handler'); elgg_register_page_handler('collections', 'collections_page_handler'); - $item = new ElggMenuItem('members', elgg_echo('members'), 'members'); - elgg_register_menu_item('site', $item); - elgg_register_plugin_hook_handler('register', 'menu:user_hover', 'elgg_user_hover_menu'); - elgg_register_action("register", '', 'public'); - elgg_register_action("useradd", '', 'public'); - elgg_register_action("friends/add"); - elgg_register_action("friends/remove"); + elgg_register_action('register', '', 'public'); + elgg_register_action('useradd', '', 'public'); + elgg_register_action('friends/add'); + elgg_register_action('friends/remove'); elgg_register_action('avatar/upload'); elgg_register_action('avatar/crop'); elgg_register_action('profile/edit'); @@ -1557,10 +1529,10 @@ function users_init() { elgg_register_plugin_hook_handler('entity:icon:url', 'user', 'user_avatar_hook'); - elgg_register_action("user/passwordreset", '', 'public'); - elgg_register_action("user/requestnewpassword", '', 'public'); + elgg_register_action('user/passwordreset', '', 'public'); + elgg_register_action('user/requestnewpassword', '', 'public'); - elgg_register_widget_type('friends', elgg_echo("friends"), elgg_echo('friends:widget:description')); + elgg_register_widget_type('friends', elgg_echo('friends'), elgg_echo('friends:widget:description')); // extend the account settings form elgg_extend_view('forms/account/settings', 'core/settings/account/name', 100); |