diff options
author | cash <cash.costello@gmail.com> | 2011-12-17 16:10:06 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-12-17 16:10:06 -0500 |
commit | a41f00224a0b5bc241b569138f4562bae4b811dd (patch) | |
tree | e6fdb59a9c7f3b5f4be6ae2799c9d1f847d40955 /engine/lib | |
parent | 3d8ca76d4b8b9e69a92f5f5b034609b410c9ee8c (diff) | |
download | elgg-a41f00224a0b5bc241b569138f4562bae4b811dd.tar.gz elgg-a41f00224a0b5bc241b569138f4562bae4b811dd.tar.bz2 |
moved user settings extensions to user_settings library
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/user_settings.php | 7 | ||||
-rw-r--r-- | engine/lib/users.php | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/engine/lib/user_settings.php b/engine/lib/user_settings.php index c71670357..af30d8f0d 100644 --- a/engine/lib/user_settings.php +++ b/engine/lib/user_settings.php @@ -346,6 +346,13 @@ function usersettings_init() { elgg_register_plugin_hook_handler('usersettings:save', 'user', 'users_settings_save'); elgg_register_action("usersettings/save"); + + // 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); } elgg_register_event_handler('init', 'system', 'usersettings_init'); diff --git a/engine/lib/users.php b/engine/lib/users.php index beabcbb59..1b3cca799 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -1562,13 +1562,6 @@ function users_init() { 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); - 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 elgg_register_entity_type('user', ''); |