diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-06-18 21:19:02 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-06-18 21:19:02 +0000 |
commit | 4d202669af4d2cc64244d70fe064aef6c50c1b23 (patch) | |
tree | 4918e7f5c8c3c1ee8246131ae9eb413ab33d7aef /modules/user/user.pages.inc | |
parent | 19d10a4e908810a53db4a08ed386c4cf1be935f1 (diff) | |
download | brdo-4d202669af4d2cc64244d70fe064aef6c50c1b23.tar.gz brdo-4d202669af4d2cc64244d70fe064aef6c50c1b23.tar.bz2 |
#455844 by yched, JohnAlbin, moshe weitzman, Frando, et al: Allow more granular theming of drupal_render()ed elements.
Diffstat (limited to 'modules/user/user.pages.inc')
-rw-r--r-- | modules/user/user.pages.inc | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/modules/user/user.pages.inc b/modules/user/user.pages.inc index 2547b7bc8..07ad31dce 100644 --- a/modules/user/user.pages.inc +++ b/modules/user/user.pages.inc @@ -185,20 +185,11 @@ function user_view($account) { * The $variables array contains the following arguments: * - $account * - * @see user-picture.tpl.php + * @see user-profile.tpl.php */ function template_preprocess_user_profile(&$variables) { $account = $variables['elements']['#account']; - - $variables['profile'] = array(); - // Sort sections by weight - uasort($account->content, 'element_sort'); - // Provide keyed variables so themers can print each section independently. - foreach (element_children($account->content) as $key) { - $variables['profile'][$key] = drupal_render($account->content[$key]); - } - // Collect all profiles to make it easier to print all items at once. - $variables['user_profile'] = implode($variables['profile']); + $variables['user_profile'] = $account->content; // Add $FIELD_NAME_rendered variables for fields. $variables += field_attach_preprocess('user', $account); |