function variable_realm_features_load in Variable 7.2
Same name and namespace in other branches
- 7 variable_realm/variable_realm.features.inc \variable_realm_features_load()
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.
2 calls to variable_realm_features_load()
- variable_realm_features_export_render in variable_realm/
variable_realm.features.inc - Implements hook_features_export_render().
- variable_realm_features_rebuild in variable_realm/
variable_realm.features.inc - Implements hook_features_rebuild().
File
- variable_realm/
variable_realm.features.inc, line 120 - Features support for Variable store.
Code
function variable_realm_features_load($module, $hook, $return = TRUE) {
// Features does not handle module loading of custom files.
module_load_include('inc', $module, $module . '.variable');
$function = $module . '_' . $hook;
if ($return && function_exists($function)) {
return $function();
}
}