You are here

function system_image_toolkit_settings in Drupal 5

Same name and namespace in other branches
  1. 6 modules/system/system.admin.inc \system_image_toolkit_settings()
  2. 7 modules/system/system.admin.inc \system_image_toolkit_settings()
1 string reference to 'system_image_toolkit_settings'
system_menu in modules/system/system.module
Implementation of hook_menu().

File

modules/system/system.module, line 743
Configuration system that lets administrators modify the workings of the site.

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,
    );
  }
  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>',
    );
  }
  $form['image_toolkit_settings'] = image_toolkit_invoke('settings');
  return system_settings_form($form);
}