You are here

function xautoload_BootSchedule_Helper_Base::invokeRegistrationHook in X Autoload 7.3

Invoke hook_xautoload or another registration hook.

Overrides xautoload_BootSchedule_Helper_Interface::invokeRegistrationHook

File

lib/BootSchedule/Helper/Base.php, line 32

Class

xautoload_BootSchedule_Helper_Base

Code

function invokeRegistrationHook($hook) {

  // Let other modules register stuff to the finder via hook_xautoload().
  $api = new xautoload_InjectedAPI_hookXautoload($this->finder);
  foreach (module_implements($hook) as $module) {
    $api
      ->setModule($module);
    $f = $module . '_' . $hook;
    $f($api);
  }
}