You are here

function login_destination_settings in Login Destination 7

Settings page.

1 string reference to 'login_destination_settings'
login_destination_menu in ./login_destination.module
Implements hook_menu().

File

./login_destination.admin.inc, line 585
Admin page callback file for the Login Destination module.

Code

function login_destination_settings() {
  $form = array();
  $form['settings']['login_destination_preserve_destination'] = array(
    '#type' => 'checkbox',
    '#default_value' => variable_get('login_destination_preserve_destination', FALSE),
    '#title' => t('Preserve the destination parameter'),
    '#description' => t("The 'destination' GET parameter will have priority over the settings of this module. With this setting enabled, redirect from the user login block will not work."),
  );
  $form['settings']['login_destination_immediate_redirect'] = array(
    '#type' => 'checkbox',
    '#default_value' => variable_get('login_destination_immediate_redirect', FALSE),
    '#title' => t('Redirect immediately after using one-time login link'),
    '#description' => t("User will be redirected before given the possibility to change their password."),
  );
  return system_settings_form($form);
}