function hook_features_override_component_overrides_alter in Features Override 6.2
Same name and namespace in other branches
- 7.2 features_override.api.php \hook_features_override_component_overrides_alter()
Allows modules to clean up the default and normal components.
For whatever reason, extra information or inconstancies may be introduced into the normal (current) or default (defined) components. This hook allows modules to hook in and clean up whatever they need to.
Parameters
$default: The object or array as defined in a default hook, unaltered.
$normal: The current object, either the current default + alters or database overrides.
$context: an array containing module and component information.
1 invocation of hook_features_override_component_overrides_alter()
- features_override_module_component_overrides in ./
features_override.export.inc - Get overrides for specific module/component.
File
- ./
features_override.api.php, line 28
Code
function hook_features_override_component_overrides_alter(&$default, &$normal, $context) {
if ($context['component'] == 'views_view') {
unset($normal->api_version);
}
}