function browscap_settings in Browscap 5
Callback for settings form Turn monitoring on or off
Return value
array
1 string reference to 'browscap_settings'
- browscap_menu in ./
browscap.module - Implementation of hook_menu().
File
- ./
browscap.module, line 128 - Replacement for PHP's get_browser() function
Code
function browscap_settings() {
$form['browscap_monitor'] = array(
'#type' => 'checkbox',
'#prefix' => t('<p>Browscap data current as of %fileversion. [<a href="!refresh">Refresh now</a>]</p>', array(
'%fileversion' => variable_get('browscap_version', t('Never fetched')),
'!refresh' => url('admin/settings/browscap/refresh'),
)),
'#title' => t('Monitor browsers'),
'#default_value' => variable_get('browscap_monitor', FALSE),
'#description' => t('Monitor all user agents visiting the site.'),
);
return system_settings_form($form);
}