You are here

function ultimate_cron_unsafe_hooks in Ultimate Cron 6

Get hooks that are unsafe due to module weight.

Return value

type

1 call to ultimate_cron_unsafe_hooks()
ultimate_cron_requirements in ./ultimate_cron.install
Implementation of hook_requirements().

File

./ultimate_cron.module, line 1102
@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_unsafe_hooks() {
  $hooks = ultimate_cron_get_hooks();
  foreach ($hooks as $name => $hook) {
    if (empty($hook['unsafe'])) {
      unset($hooks[$name]);
    }
  }
  return $hooks;
}