function ultimate_cron_init in Ultimate Cron 7.2
Same name and namespace in other branches
- 8 ultimate_cron.module \ultimate_cron_init()
- 6 ultimate_cron.module \ultimate_cron_init()
- 7 ultimate_cron.module \ultimate_cron_init()
Implements hook_init().
Make sure we have the proper "last run" of cron in global $conf for maximum compatibility with core.
File
- ./
ultimate_cron.module, line 782
Code
function ultimate_cron_init() {
if (!variable_get('ultimate_cron_bypass_transactional_safe_connection')) {
$info = Database::getConnectionInfo('default');
Database::addConnectionInfo('default', 'ultimate_cron', $info['default']);
}
$GLOBALS['ultimate_cron_original_session_saving'] = drupal_save_session();
$GLOBALS['ultimate_cron_original_user'] = $GLOBALS['user'];
_ultimate_cron_variable_load('cron_last');
}