function autologout_block_configure in Automated Logout 7.2
Same name and namespace in other branches
- 7.4 autologout.module \autologout_block_configure()
Implements hook_block_configure().
File
- ./
autologout.module, line 122 - Used to automagically log out a user after a preset time, AjK May 2006
Code
function autologout_block_configure($delta = '') {
$block = array();
_autologout_debug("autologout_block_configure()");
if (!_autologout_local_settings('enabled')) {
return;
}
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;
}