function _ultimate_cron_sort_schedule in Ultimate Cron 8
Same name and namespace in other branches
- 6 ultimate_cron.module \_ultimate_cron_sort_schedule()
- 7 ultimate_cron.module \_ultimate_cron_sort_schedule()
Sort callback for ordering schedule.
Parameters
type $a:
type $b:
Return value
type
1 string reference to '_ultimate_cron_sort_schedule'
- ultimate_cron_get_schedule in ./
ultimate_cron.module - Get a list of functions that should be run now.
File
- ./
ultimate_cron.module, line 1008 - @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_sort_schedule($a, $b) {
return $a['last_run'] == $b['last_run'] ? 0 : ($a['last_run'] < $b['last_run'] ? -1 : 1);
}