function system_image_toolkit_settings in Drupal 6
Same name and namespace in other branches
- 5 modules/system/system.module \system_image_toolkit_settings()
- 7 modules/system/system.admin.inc \system_image_toolkit_settings()
Form builder; Configure site image toolkit usage.
See also
Related topics
1 string reference to 'system_image_toolkit_settings'
- system_menu in modules/
system/ system.module - Implementation of hook_menu().
File
- modules/
system/ system.admin.inc, line 1436 - Admin page callbacks for the system module.
Code
function system_image_toolkit_settings() {
$toolkits_available = image_get_available_toolkits();
if (count($toolkits_available) > 1) {
$form['image_toolkit'] = array(
'#type' => 'radios',
'#title' => t('Select an image processing toolkit'),
'#default_value' => variable_get('image_toolkit', image_get_toolkit()),
'#options' => $toolkits_available,
);
}
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);
}