diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-08-02 20:19:02 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-08-02 20:19:02 +0000 |
commit | f1d2f5a18d1c14a44f1fdcfef0e72116bb527784 (patch) | |
tree | 653e495ea238d05e595223706a59da028b4bea45 /modules | |
parent | c70b19a91bfedbae40304cbfed7b5875c5aae342 (diff) | |
download | brdo-f1d2f5a18d1c14a44f1fdcfef0e72116bb527784.tar.gz brdo-f1d2f5a18d1c14a44f1fdcfef0e72116bb527784.tar.bz2 |
- Patch #148346 by Steef and drewish: split image.inc into image.inc and image.gd.inc and improved the documentation.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/system/system.module | 6 |
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); } |