You are here

function session_limit_help in Session Limit 7.2

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

Implements hook_help().

File

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

Code

function session_limit_help($path, $args) {
  switch ($path) {
    case 'admin/help#session_limit':
      $output = '<p>' . t("The two major notice messages to users are passed through Drupal's t() function. This maintains locale support, allowing you to override strings in any language, but such text is also available to be changed through other modules like !stringoverridesurl.", array(
        '!stringoverridesurl' => l('String Overrides', 'http://drupal.org/project/stringoverrides'),
      )) . '</p>';
      $output .= '<p>' . t("The two major strings are as follows:") . '</p>';
      $output .= '<p><blockquote>';
      $output .= variable_get('session_limit_limit_hit_message', SESSION_LIMIT_HIT_MESSAGE);
      $output .= '</blockquote></p><p><blockquote>';
      $output .= 'You have been automatically logged out. Someone else has logged in with your username and password and the maximum number of @number simultaneous sessions was exceeded. This may indicate that your account has been compromised or that account sharing is not allowed on this site. Please contact the site administrator if you suspect your account has been compromised.';
      $output .= '</blockquote></p>';
      return $output;
    case 'session/limit':
      return t(variable_get('session_limit_limit_hit_message', SESSION_LIMIT_HIT_MESSAGE), array(
        '@number' => session_limit_user_max_sessions(),
      ));
  }
}