You are here

function features_get_default_alter_hook in Features 7

Same name and namespace in other branches
  1. 7.2 features.export.inc \features_get_default_alter_hook()

Gets the available default hooks keyed by components.

1 call to features_get_default_alter_hook()
features_get_default in ./features.export.inc
Get defaults for a given module/component pair.

File

./features.export.inc, line 366

Code

function features_get_default_alter_hook($component) {
  $default_hook = features_get_components($component, 'default_hook');
  $alter_hook = features_get_components($component, 'alter_hook');
  $alter_type = features_get_components($component, 'alter_type');
  return empty($alter_type) || $alter_type != 'none' ? $alter_hook ? $alter_hook : $default_hook : FALSE;
}