function ultimate_cron_progress_message_alter in Ultimate Cron 7
Same name and namespace in other branches
- 8 ultimate_cron.module \ultimate_cron_progress_message_alter()
Implements hook_progress_message_alter().
File
- ./
ultimate_cron.module, line 482 - @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_progress_message_alter(&$message) {
$pseudo_process = new stdClass();
$pseudo_process->handle = $message->data->progress->name;
$pseudo_process->start_stamp = $message->data->progress->start_stamp;
$pseudo_process->progress = $message->data->progress->progress;
$pseudo_process->exec_status = 2;
$message->data->background_process = $pseudo_process;
return ultimate_cron_background_process_message_alter($message);
}