You are here

function session_limit_token_list in Session Limit 6.2

Same name and namespace in other branches
  1. 6 session_limit.module \session_limit_token_list()

Implementation of hook_token_list().

File

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

Code

function session_limit_token_list($type = 'all') {
  $tokens = array();
  if ($type == 'session_limit' || $type == 'user' || $type == 'all') {
    $tokens['session_limit']['session-limit-default'] = 'Maximum number of active sessions configured specific to the user.';
    $tokens['session_limit']['session-limit-max'] = 'Maximum number of active sessions allowed, accounting for all configuration possibilities.';
    $tokens['session_limit']['session-limit-role'] = 'Maximum number of active sessions allowed by role.';
    $tokens['session_limit']['session-limit-user'] = 'Maximum number of active sessions configured specific to the user.';
  }
  return $tokens;
}