You are here

function hook_features_override_component_overrides_alter in Features Override 7.2

Same name and namespace in other branches
  1. 6.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 inconsistencies 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 function implements hook_features_override_component_overrides_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

image_features_override_component_overrides_alter in ./features_override.hooks.inc
Implements hook_features_override_component_overrides_alter().
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);
  }
}