function autologout_block_configure in Automated Logout 7.4
Same name and namespace in other branches
- 7.2 autologout.module \autologout_block_configure()
Implements hook_block_configure().
File
- ./
autologout.module, line 152 - Used to automagically log out a user after a preset time.
Code
function autologout_block_configure($delta = '') {
$block = array();
if (module_exists('jstimer')) {
if (!module_exists('jst_timer')) {
drupal_set_message(t('The "Widget: timer" module must also be enabled for the dynamic countdown to work in the automated logout block.'), 'error');
}
if (variable_get('jstimer_js_load_option', 0) != 1) {
drupal_set_message(t("The Javascript timer module's 'Javascript load options' setting should be set to 'Every page' for the dynamic countdown to work in the automated logout block."), 'error');
}
}
return $block;
}