summaryrefslogtreecommitdiff
path: root/modules/user/user.pages.inc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/user.pages.inc')
-rw-r--r--modules/user/user.pages.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/user/user.pages.inc b/modules/user/user.pages.inc
index 55f2663a9..1188b2518 100644
--- a/modules/user/user.pages.inc
+++ b/modules/user/user.pages.inc
@@ -170,6 +170,8 @@ function user_view($account) {
*/
function template_preprocess_user_profile(&$variables) {
$variables['profile'] = array();
+ // Sort sections by weight
+ uasort($variables['account']->content, 'element_sort');
// Provide keyed variables so themers can print each section independantly.
foreach (element_children($variables['account']->content) as $key) {
$variables['profile'][$key] = drupal_render($variables['account']->content[$key]);