function purge_admin_settings_form in Purge 6
Same name and namespace in other branches
- 7 purge.module \purge_admin_settings_form()
Menu callback for purge admin settings.
1 string reference to 'purge_admin_settings_form'
- purge_menu in ./
purge.module - Implementation of hook_menu().
File
- ./
purge.module, line 28 - Purge clears url's from reverse proxy caches like Varnish and Squid by issuing HTTP PURGE requests.
Code
function purge_admin_settings_form() {
$form = array();
$form['purge_proxy_urls'] = array(
'#type' => 'textfield',
'#title' => t('Proxy Url'),
'#default_value' => variable_get('purge_proxy_urls', 'http://localhost:80'),
'#description' => t('Set this to the server IP or hostname that your proxy server(s) runs on (e.g. http://127.0.0.1:80). Use the optional method parameter for nginx support like http://192.168.1.76:8080/purge?purge_method=get. Separate multiple servers with spaces.'),
'#maxlength' => 512,
);
return system_settings_form($form);
}