You are here

function hook_features_export_options in Features 7.2

Same name and namespace in other branches
  1. 6 features.api.php \hook_features_export_options()
  2. 7 features.api.php \hook_features_export_options()

Component hook. List all objects for a component that may be exported.

The hook should be implemented using the name of the component, not the module, eg. [component]_features_export() rather than [module]_features_export().

Return value

string[] Format: $[$value] = $label A keyed array of items, suitable for use with a FormAPI select or checkboxes element.

15 functions implement hook_features_export_options()

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

contact_categories_features_export_options in includes/features.contact.inc
Implements hook_features_export_options().
ctools_component_features_export_options in includes/features.ctools.inc
Master implementation of hook_features_export_options() for all ctools components.
dependencies_features_export_options in includes/features.features.inc
Implements hook_features_export_options().
field_base_features_export_options in includes/features.field.inc
Implements hook_features_export_options().
field_features_export_options in includes/features.field.inc
Implements hook_features_export_options().

... See full list

File

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

Code

function hook_features_export_options() {
  $options = array();
  foreach (mycomponent_load() as $mycomponent) {
    $options[$mycomponent->name] = $mycomponent->title;
  }
  return $options;
}