summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module8
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index 27e406934..b80f14262 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -741,14 +741,12 @@ function system_image_toolkit_settings() {
'#default_value' => variable_get('image_toolkit', image_get_toolkit()),
'#options' => $toolkits_available
);
- $form['image_toolkit_settings'] = image_toolkit_invoke('settings');
-
- return system_settings_form($form);
}
else {
- $form['error'] = array('#value' => '<p>'. t("No image toolkits found. Drupal will use PHP's built-in GD library for image handling.") .'</p>');
- return $form;
+ $form['image_toolkit'] = array('#value' => '<p>'. t("No image toolkits found. Drupal will use PHP's built-in GD library for image handling.") .'</p>');
}
+ $form['image_toolkit_settings'] = image_toolkit_invoke('settings');
+ return system_settings_form($form);
}
function system_rss_feeds_settings() {