You are here

function domain_features_load in Domain Access 7.3

Features doesn't know how to load custom includes.

Parameters

$module: The name of the feature to load.

$hook: The name of the domain hook.

$return: Boolean indicator to return the results of the function.

Return value

The results of the $hook implemenation, if requested.

8 calls to domain_features_load()
domain_alias_features_export_render in domain_alias/domain_alias.features.inc
Implements hook_features_export_render().
domain_alias_features_rebuild in domain_alias/domain_alias.features.inc
Implements hook_features_rebuild().
domain_conf_features_export_render in domain_conf/domain_conf.features.inc
Implements hook_features_export_render().
domain_conf_features_rebuild in domain_conf/domain_conf.features.inc
Implements hook_features_rebuild().
domain_features_export_render in ./domain.features.inc
Implements hook_features_export_render().

... See full list

File

./domain.module, line 3869
Core module functions for the Domain Access suite.

Code

function domain_features_load($module, $hook, $return = TRUE) {

  // Features does not handle module loading of custom files.
  module_load_include('inc', $module, $module . '.domains');
  $function = $module . '_' . $hook;
  if ($return && function_exists($function)) {
    return $function();
  }
}