You are here

function ultimate_cron_load_hook_data in Ultimate Cron 7

Same name and namespace in other branches
  1. 8 ultimate_cron.module \ultimate_cron_load_hook_data()
  2. 6 ultimate_cron.module \ultimate_cron_load_hook_data()

Populate hook array with settings and log data

Parameters

type $hook:

2 calls to ultimate_cron_load_hook_data()
ultimate_cron_get_schedule in ./ultimate_cron.module
Get a list of functions that should be run now.
ultimate_cron_service_start in ./ultimate_cron.admin.inc
Run a single function.

File

./ultimate_cron.module, line 993
@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_load_hook_data(&$hook) {

  // Get settings
  $hook['settings'] = ultimate_cron_get_settings($hook['function']) + $hook['settings'];

  // Get log, used for checking last start time
  $hook['log'] = ultimate_cron_get_log($hook['function']);
}