You are here

function imagecache_external_admin_form in Imagecache External 7

Same name and namespace in other branches
  1. 6.2 imagecache_external.admin.inc \imagecache_external_admin_form()
  2. 6 imagecache_external.admin.inc \imagecache_external_admin_form()
  3. 7.2 imagecache_external.admin.inc \imagecache_external_admin_form()

Form builder

1 string reference to 'imagecache_external_admin_form'
imagecache_external_menu in ./imagecache_external.module
Implements hook_menu().

File

./imagecache_external.admin.inc, line 13

Code

function imagecache_external_admin_form($form, $form_state) {
  $form = array();
  $form['imagecache_external_option'] = array(
    '#type' => 'radios',
    '#title' => t('Hosts list option'),
    '#description' => t('Choose the method to filter external urls (note admin user is not affected)'),
    '#options' => array(
      'black' => t('Blacklist: Only deny images from the listed hosts.'),
      'white' => t('Whitelist: Deny all images <b>except</b> the listed hosts.'),
    ),
    '#default_value' => variable_get('imagecache_external_option', 'white'),
  );
  $form['imagecache_external_hosts'] = array(
    '#type' => 'textarea',
    '#title' => t('Imagecache External hosts'),
    '#description' => t('Add one host per line. Ex: www.flickr.com'),
    '#default_value' => variable_get('imagecache_external_hosts', ''),
  );
  return system_settings_form($form);
}