summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-06 05:06:00 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-06 05:06:00 +0000
commit9327932bf23250b7eb8b4953e45f2cfbf6dda641 (patch)
treedbd1a30eb0823ca117b1484bc13f04a1ed7742f0 /modules/user/user.module
parent523ba0348ea70e6ed1412488cd37dc521d13abae (diff)
downloadbrdo-9327932bf23250b7eb8b4953e45f2cfbf6dda641.tar.gz
brdo-9327932bf23250b7eb8b4953e45f2cfbf6dda641.tar.bz2
#382870 by geerlingguy, jmburnz, EclipseGc, JohnAlbin, sun, et al: Update and Polish default node.tpl.php output.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index d36e270a2..584e7ce74 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -1153,7 +1153,7 @@ function user_block_view($delta = '') {
* @see user-picture.tpl.php
*/
function template_preprocess_user_picture(&$variables) {
- $variables['picture'] = '';
+ $variables['user_picture'] = '';
if (variable_get('user_pictures', 0)) {
$account = $variables['account'];
if (!empty($account->picture)) {
@@ -1177,14 +1177,14 @@ function template_preprocess_user_picture(&$variables) {
if (isset($filepath)) {
$alt = t("@user's picture", array('@user' => $account->name ? $account->name : variable_get('anonymous', t('Anonymous'))));
if (module_exists('image') && $style = variable_get('user_picture_style', '')) {
- $variables['picture'] = theme('image_style', $style, $filepath, $alt, $alt, array(), FALSE);
+ $variables['user_picture'] = theme('image_style', $style, $filepath, $alt, $alt, array(), FALSE);
}
else {
- $variables['picture'] = theme('image', $filepath, $alt, $alt, array(), FALSE);
+ $variables['user_picture'] = theme('image', $filepath, $alt, $alt, array(), FALSE);
}
if (!empty($account->uid) && user_access('access user profiles')) {
$attributes = array('attributes' => array('title' => t('View user profile.')), 'html' => TRUE);
- $variables['picture'] = l($variables['picture'], "user/$account->uid", $attributes);
+ $variables['user_picture'] = l($variables['user_picture'], "user/$account->uid", $attributes);
}
}
}