function session_limit_help in Session Limit 6
Same name and namespace in other branches
- 5 session_limit.module \session_limit_help()
- 6.2 session_limit.module \session_limit_help()
- 7.2 session_limit.module \session_limit_help()
Implementation of hook_help().
File
- ./
session_limit.module, line 11 - 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 .= 'The maximum number of simultaneous sessions (@number) for your account has been reached. You did not log off from a previous session or someone else is logged on to your account. This may indicate that your account has been compromised or that account sharing is limited on this site. Please contact the site administrator if you suspect your account has been compromised.';
$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('The maximum number of simultaneous sessions (@number) for your account has been reached. You did not log off from a previous session or someone else is logged on to your account. This may indicate that your account has been compromised or that account sharing is limited on this site. Please contact the site administrator if you suspect your account has been compromised.', array(
'@number' => session_limit_user_max_sessions(),
));
}
}