function counter_settings_advanced in Counter 7
Same name and namespace in other branches
- 6.2 counter.settings.inc \counter_settings_advanced()
Implements hook_settings_advanced().
1 string reference to 'counter_settings_advanced'
- counter_menu in ./
counter.module - Menu callback. Prints a listing of active nodes on the site.
File
- ./
counter.settings.inc, line 118 - Settings page callback file for the counter module.
Code
function counter_settings_advanced() {
$form['counter_advanced'] = array(
'#type' => 'fieldset',
'#weight' => -20,
'#title' => t('Advanced settings'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['counter_advanced']['counter_skip_admin'] = array(
'#type' => 'checkbox',
'#title' => t('Skip admin'),
'#default_value' => variable_get('counter_skip_admin', 0),
'#description' => t("Do not count when visitor is admin (uid=1)."),
);
$form['counter_advanced']['counter_refresh_delay'] = array(
'#type' => 'textfield',
'#title' => t('Delay before refresh counter data (in second)'),
'#default_value' => variable_get('counter_refresh_delay', 10),
'#description' => t("Delay before re-calculate counter data, otherwise read from previous value."),
);
$form['counter_advanced']['counter_insert_delay'] = array(
'#type' => 'textfield',
'#title' => t('Delay before next insert (in second)'),
'#default_value' => variable_get('counter_insert_delay', 1),
'#description' => t("Wait for certain second before next insert. Increase this value if your server can not handle too much data recording. Set to 0 for no delay."),
);
return system_settings_form($form);
}