diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-08-30 06:19:42 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-08-30 06:19:42 +0000 |
commit | e54f26518fcc0ea12189da11846fffd4e38a1c1f (patch) | |
tree | 66176f8106b7e734d7c2e420a7ce438afdea6e9c | |
parent | 63136b81e2c73a8ea7011b7c1b9f9df3a9ba7ad6 (diff) | |
download | brdo-e54f26518fcc0ea12189da11846fffd4e38a1c1f.tar.gz brdo-e54f26518fcc0ea12189da11846fffd4e38a1c1f.tar.bz2 |
#758996 by stBorchert, BWPanda: Fixed Suffixes not displaying for max/min resolution fields.
-rw-r--r-- | modules/image/image.field.inc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/image/image.field.inc b/modules/image/image.field.inc index ea895d7ec..d8a1788ca 100644 --- a/modules/image/image.field.inc +++ b/modules/image/image.field.inc @@ -107,10 +107,12 @@ function image_field_instance_settings_form($field, $instance) { // Add maximum and minimum resolution settings. $max_resolution = explode('x', $settings['max_resolution']) + array('', ''); $form['max_resolution'] = array( + '#type' => 'item', '#title' => t('Maximum image resolution'), '#element_validate' => array('_image_field_resolution_validate'), - '#theme_wrappers' => array('form_element'), '#weight' => 4.1, + '#field_prefix' => '<div class="container-inline">', + '#field_suffix' => '</div>', '#description' => t('The maximum allowed image size expressed as WIDTHxHEIGHT (e.g. 640x480). Leave blank for no restriction. If a larger image is uploaded, it will be resized to reflect the given width and height. Resizing images on upload will cause the loss of <a href="http://en.wikipedia.org/wiki/Exchangeable_image_file_format">EXIF data</a> in the image.'), ); $form['max_resolution']['x'] = array( @@ -119,7 +121,6 @@ function image_field_instance_settings_form($field, $instance) { '#size' => 5, '#maxlength' => 5, '#field_suffix' => ' x ', - '#theme_wrappers' => array(), ); $form['max_resolution']['y'] = array( '#type' => 'textfield', @@ -127,15 +128,16 @@ function image_field_instance_settings_form($field, $instance) { '#size' => 5, '#maxlength' => 5, '#field_suffix' => ' ' . t('pixels'), - '#theme_wrappers' => array(), ); $min_resolution = explode('x', $settings['min_resolution']) + array('', ''); $form['min_resolution'] = array( + '#type' => 'item', '#title' => t('Minimum image resolution'), '#element_validate' => array('_image_field_resolution_validate'), - '#theme_wrappers' => array('form_element'), '#weight' => 4.2, + '#field_prefix' => '<div class="container-inline">', + '#field_suffix' => '</div>', '#description' => t('The minimum allowed image size expressed as WIDTHxHEIGHT (e.g. 640x480). Leave blank for no restriction. If a smaller image is uploaded, it will be rejected.'), ); $form['min_resolution']['x'] = array( @@ -144,7 +146,6 @@ function image_field_instance_settings_form($field, $instance) { '#size' => 5, '#maxlength' => 5, '#field_suffix' => ' x ', - '#theme_wrappers' => array(), ); $form['min_resolution']['y'] = array( '#type' => 'textfield', @@ -152,7 +153,6 @@ function image_field_instance_settings_form($field, $instance) { '#size' => 5, '#maxlength' => 5, '#field_suffix' => ' ' . t('pixels'), - '#theme_wrappers' => array(), ); // Remove the description option. |