You are here

function session_api_settings_form in Session API 6

Same name and namespace in other branches
  1. 5 session_api.admin.inc \session_api_settings_form()
  2. 7 session_api.admin.inc \session_api_settings_form()

Session API admin settings form.

1 string reference to 'session_api_settings_form'
session_api_menu in ./session_api.module
Implementation of hook_menu().

File

./session_api.admin.inc, line 12
Session API admin functions.

Code

function session_api_settings_form() {

  // Find modules that implement hook_session_api_cleanup().
  $modules = module_implements('session_api_cleanup');

  // Cookie expiry.
  $form['session_api_cookie_expire_time'] = array(
    '#type' => 'textfield',
    '#title' => t('Cookie expire time'),
    '#description' => t("The <strong>Session API</strong> module sets an additional cookie in the end users' browsers in order to better track sessions across logins and logouts. This is the amount of time, in seconds, that the cookie will stay valid in a user's browser."),
    '#default_value' => variable_get('session_api_cookie_expire_time', 2592000),
  );
  return system_settings_form($form);
}