You are here

function _session_limit_user_options in Session Limit 7.2

Same name and namespace in other branches
  1. 6.2 session_limit.module \_session_limit_user_options()
  2. 6 session_limit.module \_session_limit_user_options()

Helper function for populating the values of the settings form select.

2 calls to _session_limit_user_options()
session_limit_settings_byrole in ./session_limit.module
Settings by role form.
session_limit_user_settings in ./session_limit.module
Session limit user settings form.

File

./session_limit.module, line 495
Limits multiple sessions per user.

Code

function _session_limit_user_options() {
  $options = drupal_map_assoc(range(0, 250));
  $options[0] = t('Default');
  $options['999999'] = t('Disabled');
  return $options;
}