You are here

function themekey_redirect_settings_form in ThemeKey 7.3

Form builder for the redirect settings form.

1 string reference to 'themekey_redirect_settings_form'
themekey_redirect_menu in themekey_redirect/themekey_redirect.module
Implements hook_menu().

File

themekey_redirect/themekey_redirect_admin.inc, line 142

Code

function themekey_redirect_settings_form() {
  $form = array();
  $form['themekey_redirect'] = array(
    '#type' => 'fieldset',
    '#title' => t('Redirect Settings'),
    '#collapsible' => FALSE,
    '#collapsed' => FALSE,
  );
  $form['themekey_redirect']['themekey_redirect_check_once'] = array(
    '#type' => 'checkbox',
    '#title' => t('Only evaluate once.'),
    '#default_value' => variable_get('themekey_redirect_check_once', FALSE),
    '#description' => t('Only evaluate the rule chain for one time. The evaluation happens immediately when the user hits the site and never again util the user closes the browser.'),
  );
  $form['themekey_redirect']['themekey_redirect_redirect_once'] = array(
    '#type' => 'checkbox',
    '#title' => t("Don't evaluate if the user comes back."),
    '#default_value' => variable_get('themekey_redirect_redirect_once', FALSE),
    '#description' => t("Don't evaluate the rule chain again if the user comes back after a redirect. This state is saved until the user closes the browser."),
  );
  $form['themekey_redirect']['themekey_redirect_compatible_path'] = array(
    '#type' => 'checkbox',
    '#title' => t("Append drupal compatible path."),
    '#default_value' => variable_get('themekey_redirect_compatible_path', FALSE),
    '#description' => t('Uses urls like index.php?q=node/1 instead of clean urls or translated paths.'),
  );
  return system_settings_form($form);
}