From f9501bd6cef73e88b130c6640087008f8d58ef92 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 13 Feb 2011 19:44:26 +0000 Subject: Fixes #2848 pulls user settings code out of actions into functions. We should investigate putting them in a library that is only loaded on demand git-svn-id: http://code.elgg.org/elgg/trunk@8204 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/users.php | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'engine/lib/users.php') diff --git a/engine/lib/users.php b/engine/lib/users.php index 2f5d37551..8d8c7fb64 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -1536,8 +1536,6 @@ function users_init() { elgg_register_plugin_hook_handler('entity:icon:url', 'user', 'user_avatar_hook'); - elgg_register_action("usersettings/save"); - elgg_register_action("user/passwordreset", '', 'public'); elgg_register_action("user/requestnewpassword", '', 'public'); @@ -1553,28 +1551,9 @@ function users_init() { // Register the user type register_entity_type('user', ''); - elgg_register_plugin_hook_handler('usersettings:save', 'user', 'users_settings_save'); - elgg_register_event_handler('create', 'user', 'user_create_hook_add_site_relationship'); } -/** - * Saves user settings by directly including actions. - * - * @todo this is dirty. - * - * @return void - */ -function users_settings_save() { - global $CONFIG; - //@todo Wha?? - include($CONFIG->path . "actions/user/name.php"); - include($CONFIG->path . "actions/user/password.php"); - include($CONFIG->path . "actions/email/save.php"); - include($CONFIG->path . "actions/user/language.php"); - include($CONFIG->path . "actions/user/default_access.php"); -} - /** * Runs unit tests for ElggObject * -- cgit v1.2.3