You are here

function background_process_get_dispatchers in Background Process 7.2

1 call to background_process_get_dispatchers()
background_process_prepare_dispatcher_callback in ./background_process.module

File

./background_process.module, line 175

Code

function background_process_get_dispatchers() {
  $dispatchers =& drupal_static(__FUNCTION__);
  if (!isset($dispatchers)) {
    $cache = cache_get('background_process_dispatcher_info');
    if ($cache) {
      $dispatchers = $cache->data;
    }
    else {
      $dispatchers = module_invoke_all('background_process_dispatcher_info');
      drupal_alter('background_process_dispatcher_info', $dispatchers);
      cache_set('background_process_dispatcher_info', $dispatchers, 'cache');
    }
  }
  return $dispatchers;
}