domain_api

Versions
domain
domain_api($domain, $reset = FALSE)

Helper function for passing hook_domainload() by reference.

Parameters

$domain The domain array defined by domain_lookup().

$reset A boolean flag to clear the static variable if necessary.

Return value

The $domain array, modified by reference by hook_domainload() implementations.

▾ 3 functions call domain_api()

domain_default in ./domain.module
Assigns the default settings to domain 0, the root domain.
domain_lookup in ./domain.module
Runs a lookup against the {domain} table. One of the two values must be present
domain_view in ./domain.admin.inc
The main administration page, a list of active domains.

Code

./domain.module, line 937

<?php
function domain_api($domain, $reset = FALSE) {
  static $_modules;
  if (!isset($_modules) || $reset) {
    $_modules = module_implements('domainload');
  }
  if (!empty($_modules)) {
    foreach ($_modules as $module) {
      // Cannot use module_invoke_all() since these are passed by reference.
      $function = $module .'_domainload';
      $function($domain);
    }
  }
  return $domain;
}
?>

Contact

  • agentrickard [at] gmail [dot] com

Donations

My Amazon.com Wish List