summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-07-29 01:39:32 +0000
committerDries Buytaert <dries@buytaert.net>2010-07-29 01:39:32 +0000
commitb059eaeb704ce466e49e3dfbcc1bc74ed5097cb5 (patch)
tree4ab2cbe711dfe16623826f21ab2fdf8f8ed61c7a
parentfe423209a166bd275c3c3abec5503253aee011da (diff)
downloadbrdo-b059eaeb704ce466e49e3dfbcc1bc74ed5097cb5.tar.gz
brdo-b059eaeb704ce466e49e3dfbcc1bc74ed5097cb5.tar.bz2
- Patch #27234 by Steve Dondley, rfay, drewish, maartenvg: maximum picture size help text in profile no longer needed.
-rw-r--r--modules/user/user.admin.inc4
-rw-r--r--modules/user/user.module2
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/user/user.admin.inc b/modules/user/user.admin.inc
index 905016054..1e017cdf8 100644
--- a/modules/user/user.admin.inc
+++ b/modules/user/user.admin.inc
@@ -395,7 +395,7 @@ function user_admin_settings() {
'#size' => 10,
'#maxlength' => 10,
'#field_suffix' => ' ' . t('pixels'),
- '#description' => t('Maximum allowed dimensions for uploaded pictures.'),
+ '#description' => t('Pictures larger than this will be scaled down to this size.'),
);
$form['personalization']['pictures']['user_picture_file_size'] = array(
'#type' => 'textfield',
@@ -404,7 +404,7 @@ function user_admin_settings() {
'#size' => 10,
'#maxlength' => 10,
'#field_suffix' => ' ' . t('KB'),
- '#description' => t('Maximum allowed file size for uploaded pictures.'),
+ '#description' => t('Maximum allowed file size for uploaded pictures. Upload size is normally limited only by the PHP maximum post and file upload settings, and images are automatically scaled down to the dimensions specified above.'),
);
$form['personalization']['pictures']['user_picture_guidelines'] = array(
'#type' => 'textarea',
diff --git a/modules/user/user.module b/modules/user/user.module
index 8e5e8f8d6..ef2b4b374 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -1113,7 +1113,7 @@ function user_account_form(&$form, &$form_state) {
'#type' => 'file',
'#title' => t('Upload picture'),
'#size' => 48,
- '#description' => t('Your virtual face or picture. Maximum dimensions are %dimensions pixels and the maximum size is %size kB.', array('%dimensions' => variable_get('user_picture_dimensions', '85x85'), '%size' => variable_get('user_picture_file_size', '30'))) . ' ' . filter_xss_admin(variable_get('user_picture_guidelines', '')),
+ '#description' => t('Your virtual face or picture. Pictures larger than @dimensions pixels will be scaled down.', array('@dimensions' => variable_get('user_picture_dimensions', '85x85'))) . ' ' . filter_xss_admin(variable_get('user_picture_guidelines', '')),
);
$form['#validate'][] = 'user_validate_picture';
}