summaryrefslogtreecommitdiff
path: root/modules/system/system.admin.inc
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2008-01-15 10:17:42 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2008-01-15 10:17:42 +0000
commit1b2ce46df2f11783fb766f3d3811dab1c4acb986 (patch)
treea1ef59acb694ee6cff9b9f794782e206273bc412 /modules/system/system.admin.inc
parent63a15b383c27139b5544810f0b6105777165fd19 (diff)
downloadbrdo-1b2ce46df2f11783fb766f3d3811dab1c4acb986.tar.gz
brdo-1b2ce46df2f11783fb766f3d3811dab1c4acb986.tar.bz2
#201540 follow up by zoo33: move jpeg quality validation to where it belongs, so it is only called if the current image toolkit requires it
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r--modules/system/system.admin.inc12
1 files changed, 0 insertions, 12 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 7adbcaab2..af6e53c8a 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -1425,23 +1425,11 @@ function system_image_toolkit_settings() {
}
$form['image_toolkit_settings'] = image_toolkit_invoke('settings');
- $form['#validate'][] = 'system_image_toolkit_settings_validate';
return system_settings_form($form);
}
/**
- * Validate the submitted image-toolkit form.
- */
-function system_image_toolkit_settings_validate($form, &$form_state) {
- // Validate image quality range.
- $value = $form_state['values']['image_jpeg_quality'];
- if (!is_numeric($value) || $value < 0 || $value > 100) {
- form_set_error('image_jpeg_quality', t('JPEG quality must be a number between 0 and 100.'));
- }
-}
-
-/**
* Form builder; Configure how the site handles RSS feeds.
*
* @ingroup forms