You are here

function domain_locale_features_load in Domain Locale 7

Features doesn't know how to load custom includes.

Parameters

$module: The name of the feature to load.

$hook: The name of the Domain Locale hook.

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

Return value

The results of the $hook implemenation, if requested.

2 calls to domain_locale_features_load()
domain_locale_features_export_render in ./domain_locale.features.inc
Implements hook_features_export_render().
domain_locale_features_rebuild in ./domain_locale.features.inc
Implements hook_features_rebuild().

File

./domain_locale.module, line 612
Provides domain specific language settings.

Code

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

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