From f1d2f5a18d1c14a44f1fdcfef0e72116bb527784 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 2 Aug 2007 20:19:02 +0000 Subject: - Patch #148346 by Steef and drewish: split image.inc into image.inc and image.gd.inc and improved the documentation. --- modules/system/system.module | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/system/system.module') 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' => '

'. t("No image toolkits found. Drupal will use PHP's built-in GD library for image handling.") .'

'); + 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); } -- cgit v1.2.3