You are here

function ultimate_cron_uncronable_modules in Ultimate Cron 6

Find modules that precedes Ultimate Cron and therefore cannot be handled by Ultimate Cron.

Return value

array List of modules.

2 calls to ultimate_cron_uncronable_modules()
ultimate_cron_get_hooks in ./ultimate_cron.module
Get cron hooks available.
ultimate_cron_settings_form in ./ultimate_cron.admin.inc
Settings form.

File

./ultimate_cron.module, line 1085
@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_uncronable_modules() {
  $modules = array();
  foreach (module_list() as $module) {
    if ($module === 'ultimate_cron') {
      break;
    }
    if (module_hook($module, 'cron')) {
      $modules[$module] = $module;
    }
  }
  return $modules;
}