summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.module6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index c856ea930..f482cc81f 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -789,10 +789,12 @@ function system_image_toolkit_settings() {
'#options' => $toolkits_available
);
}
- else {
- $form['image_toolkit'] = array('#value' => '<p>'. t("No image toolkits found. Drupal will use PHP's built-in GD library for image handling.") .'</p>');
+ elseif (count($toolkits_available) == 1) {
+ variable_set('image_toolkit', key($toolkits_available));
}
+
$form['image_toolkit_settings'] = image_toolkit_invoke('settings');
+
return system_settings_form($form);
}