You are here

function theme_autologout_generic in Automated Logout 5

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

theme_autologout_generic()

A general theme function used when HTML is being inserted into a text string. Allows themers the oppertunity to alter html the module may want to output to suit their site/theme.

Parameters

integer $arg: A constant defining what string to return.

Return value

string The actual string.

1 theme call to theme_autologout_generic()
_autologout_settings in ./autologout.module
Implementation of hook_settings

File

./autologout.module, line 530
Used to automagically log out a user after a preset time, AjK May 2006

Code

function theme_autologout_generic($arg = 0) {
  switch ($arg) {
    case 0:
      return '<br/><b>' . t('Set-up your site policy by role:-') . '</b>';
    case 1:
      return '<br/><b>' . t('WARNING, user with ID = 1 (initial admin user) is never auto-logged out') . '</b>';
    default:
      return '';
  }
}