function ultimate_cron_set_current_hook in Ultimate Cron 7
Same name and namespace in other branches
- 8 ultimate_cron.module \ultimate_cron_set_current_hook()
- 6 ultimate_cron.module \ultimate_cron_set_current_hook()
Set current hook being processed
Parameters
$hook:
Return value
Current hook
2 calls to ultimate_cron_set_current_hook()
- ultimate_cron_get_current_hook in ./
ultimate_cron.module - Get current hook being processed
- _ultimate_cron_run_hook in ./
ultimate_cron.module - This is the function that is launched into a background process. It runs the cron job and does housekeeping, pre/post execute hooks, etc.
File
- ./
ultimate_cron.module, line 759 - @todo Add filter on overview page. @todo Add log view (with graph). @todo Make proper markup for overview page. @todo Refactor drush stuff, too many intimate relations with Background Process @todo Refactor Cron % offset stuff. Too mixed up and…
Code
function ultimate_cron_set_current_hook($hook = NULL) {
static $current_hook;
if ($hook) {
$current_hook = $hook;
}
return $current_hook;
}