You are here

function hook_features_export_options_alter in Features 7.2

Module hook. Allows to alter the export options.

The hook was first introduced in #1999254, to allow hiding specific items that should never be exported to a feature.

Known issues:

  • This is currently ONLY invoked in the admin UI, NOT in drush commands.
  • There are no implementations within features itself. In fact there might be no implementations of this hook in any contrib module.
  • Use at your own risk! See #3079939.

Parameters

string[] $options: Format: $[$name] = $label Machine names and labels of exportable items for the component.

string $component: The component name, e.g. 'field_instance'.

See also

\hook_features_export_options()

\_features_export_build()

1 invocation of hook_features_export_options_alter()
_features_export_build in ./features.admin.inc
Return the full feature export array based upon user selections in form_state.

File

./features.api.php, line 354
Hooks provided by the features module.

Code

function hook_features_export_options_alter(array &$options, $component) {

  // Alter the $options array.
}