function imagecache_external_admin_form in Imagecache External 6.2
Same name and namespace in other branches
- 6 imagecache_external.admin.inc \imagecache_external_admin_form()
- 7.2 imagecache_external.admin.inc \imagecache_external_admin_form()
- 7 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 - Implementation of hook_menu().
File
- ./
imagecache_external.admin.inc, line 13
Code
function imagecache_external_admin_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);
}