You are here

function visitors_referers_form in Visitors 7.0

Same name and namespace in other branches
  1. 8 forms/referers.inc \visitors_referers_form()
  2. 7.2 forms/referers.inc \visitors_referers_form()
  3. 7 forms/referers.inc \visitors_referers_form()

Referers form data.

1 string reference to 'visitors_referers_form'
visitors_referers in forms/referers.inc

File

forms/referers.inc, line 32
Referers form for visitors module.

Code

function visitors_referers_form($form_state) {
  visitors_set_session_date_range();
  visitors_set_session_referer_type();
  $form = visitors_date_filter_form_block();
  $form['visitors_referer'] = array(
    '#type' => 'fieldset',
    '#title' => t('Referers type filter'),
    '#collapsible' => FALSE,
    '#collapsed' => FALSE,
    '#description' => t('Choose referers type'),
  );
  $form['visitors_referer']['referer_type'] = array(
    '#type' => 'select',
    '#title' => 'Referer type',
    '#default_value' => $_SESSION['referer_type'],
    '#options' => array(
      REFERER_TYPE_INTERNAL_PAGES => t('Internal pages'),
      REFERER_TYPE_EXTERNAL_PAGES => t('External pages'),
      REFERER_TYPE_ALL_PAGES => t('All pages'),
    ),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}