aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-17 20:36:36 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-17 20:36:36 +0000
commitdb787a3ab93da0c2141d33f3058f9dc2f34d6f2a (patch)
treedca419a399cb00f45c227aed7a62993b089e0f27 /engine/lib/users.php
parentc2add32bbf281d488deb26343cf059e3347fe525 (diff)
downloadelgg-db787a3ab93da0c2141d33f3058f9dc2f34d6f2a.tar.gz
elgg-db787a3ab93da0c2141d33f3058f9dc2f34d6f2a.tar.bz2
reorganized the settings views and updated the pages to use new layout
git-svn-id: http://code.elgg.org/elgg/trunk@7663 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r--engine/lib/users.php25
1 files changed, 6 insertions, 19 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 076f7b9f7..4e34586a3 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -1544,25 +1544,12 @@ function users_init() {
elgg_register_widget_type('friends', elgg_echo("friends"), elgg_echo('friends:widget:description'));
- // User name change
- extend_elgg_settings_page('user/settings/name', 'usersettings/user', 1);
- //elgg_register_action("user/name");
-
- // User password change
- extend_elgg_settings_page('user/settings/password', 'usersettings/user', 1);
- //elgg_register_action("user/password");
-
- // Add email settings
- extend_elgg_settings_page('user/settings/email', 'usersettings/user', 1);
- //elgg_register_action("email/save");
-
- // Add language settings
- extend_elgg_settings_page('user/settings/language', 'usersettings/user', 1);
-
- // Add default access settings
- extend_elgg_settings_page('user/settings/default_access', 'usersettings/user', 1);
-
- //elgg_register_action("user/language");
+ // extend the account settings form
+ elgg_extend_view('forms/account/settings', 'core/settings/account/name', 100);
+ elgg_extend_view('forms/account/settings', 'core/settings/account/password', 100);
+ elgg_extend_view('forms/account/settings', 'core/settings/account/email', 100);
+ elgg_extend_view('forms/account/settings', 'core/settings/account/language', 100);
+ elgg_extend_view('forms/account/settings', 'core/settings/account/default_access', 100);
// Register the user type
register_entity_type('user', '');