You are here

function counter_settings_advanced in Counter 6.2

Same name and namespace in other branches
  1. 7 counter.settings.inc \counter_settings_advanced()

File

./counter.settings.inc, line 123
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."),
  );
  return system_settings_form($form);
}