You are here

function xautoload_custom_theme in X Autoload 7.2

Same name and namespace in other branches
  1. 7.5 xautoload.module \xautoload_custom_theme()
  2. 7.3 xautoload.module \xautoload_custom_theme()
  3. 7.4 xautoload.module \xautoload_custom_theme()

Implements hook_custom_theme() We only do this because that's the first hook to fire after bootstrap.

1 call to xautoload_custom_theme()
xautoload_init in ./xautoload.module
Implements hook_init()

File

./xautoload.module, line 50

Code

function xautoload_custom_theme() {

  // Make sure this only runs once.
  // (we run this from hook_init also, to avoid upgrade issues)
  static $first_run = TRUE;
  if (!$first_run) {
    return;
  }
  $first_run = FALSE;

  // Tell the "extension system" that the "main phase" has started, and thus
  // all Drupal modules are now available.
  xautoload('drupalExtensionSystem')
    ->mainPhase();

  // Let other modules register stuff to the finder.
  $api = new xautoload_InjectedAPI_hookXautoload(xautoload_get_finder());
  foreach (module_implements('xautoload') as $module) {
    $api
      ->setModule($module);
    $f = $module . '_xautoload';
    $f($api);
  }
}