summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/image/image.field.inc12
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.