aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-13 19:44:26 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-13 19:44:26 +0000
commitf9501bd6cef73e88b130c6640087008f8d58ef92 (patch)
treefbf2602a69e85738d11f5f72a47fbe70904fd227 /views
parent11cc3f9f5b2551322e6c51a453291e7ecf5d364d (diff)
downloadelgg-f9501bd6cef73e88b130c6640087008f8d58ef92.tar.gz
elgg-f9501bd6cef73e88b130c6640087008f8d58ef92.tar.bz2
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
Diffstat (limited to 'views')
-rw-r--r--views/default/core/settings/account/language.php2
-rw-r--r--views/default/forms/account/settings.php7
2 files changed, 8 insertions, 1 deletions
diff --git a/views/default/core/settings/account/language.php b/views/default/core/settings/account/language.php
index c8fef3a46..a1e8d9886 100644
--- a/views/default/core/settings/account/language.php
+++ b/views/default/core/settings/account/language.php
@@ -20,7 +20,7 @@ if ($user) {
<?php
echo elgg_view("input/dropdown", array(
'internalname' => 'language',
- 'value' => $value,
+ 'value' => $user->language,
'options_values' => get_installed_translations()
));
?>
diff --git a/views/default/forms/account/settings.php b/views/default/forms/account/settings.php
index b3d9bbc7f..824b2280b 100644
--- a/views/default/forms/account/settings.php
+++ b/views/default/forms/account/settings.php
@@ -1 +1,8 @@
<?php
+/**
+ * Account settings form used for user settings
+ *
+ * This form is extended by Elgg with the views in core/settings/account.
+ * Plugins can additionally extend it and then register for the
+ * 'usersettings:save', 'user' plugin hook.
+ */