diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-08-26 09:56:17 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-08-26 09:56:17 +0000 |
commit | 234d5bef20e4172f3cd3ed6d6f5a7264e8ca947c (patch) | |
tree | 425baeb447f9f3d60f3bc75b71fce657da6d6f04 /modules/upload/upload.module | |
parent | 1fab8db4869c42861a72dbbc240509bc3fee22ee (diff) | |
download | brdo-234d5bef20e4172f3cd3ed6d6f5a7264e8ca947c.tar.gz brdo-234d5bef20e4172f3cd3ed6d6f5a7264e8ca947c.tar.bz2 |
- Patch #38454 by drumm, jaza, webchick, timnc et al: add field pre- and suffixes to textfields.
Diffstat (limited to 'modules/upload/upload.module')
-rw-r--r-- | modules/upload/upload.module | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module index 83427e717..6a2ffc7a3 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -182,7 +182,8 @@ function upload_admin_settings() { '#default_value' => variable_get('upload_max_resolution', 0), '#size' => 15, '#maxlength' => 10, - '#description' => t('The maximum allowed image size expressed as WIDTHxHEIGHT (e.g. 640x480). Set to 0 for no restriction.'), + '#description' => t('The maximum allowed image size (e.g. 640x480). Set to 0 for no restriction.'), + '#field_suffix' => t('<kbd>WIDTHxHEIGHT</kbd>') ); $form['settings_general']['upload_list_default'] = array( '#type' => 'select', @@ -205,7 +206,8 @@ function upload_admin_settings() { '#default_value' => $upload_uploadsize_default, '#size' => 5, '#maxlength' => 5, - '#description' => t('The default maximum file size a user can upload (in megabytes).'), + '#description' => t('The default maximum file size a user can upload.'), + '#field_suffix' => t('MB') ); $form['settings_general']['upload_usersize_default'] = array( '#type' => 'textfield', @@ -213,7 +215,8 @@ function upload_admin_settings() { '#default_value' => $upload_usersize_default, '#size' => 5, '#maxlength' => 5, - '#description' => t('The default maximum size of all files a user can have on the site (in megabytes).'), + '#description' => t('The default maximum size of all files a user can have on the site.'), + '#field_suffix' => t('MB') ); $form['upload_max_size'] = array('#value' => '<p>'. t('Your PHP settings limit the maximum file size per upload to %size MB.', array('%size' => file_upload_max_size())).'</p>'); |