function hook_features_export_options in Features 7
Same name and namespace in other branches
- 6 features.api.php \hook_features_export_options()
- 7.2 features.api.php \hook_features_export_options()
Component hook. The hook should be implemented using the name ot the component, not the module, eg. [component]_features_export() rather than [module]_features_export().
List all objects for a component that may be exported.
Return value
array A keyed array of items, suitable for use with a FormAPI select or checkboxes element.
12 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.
- 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_features_export_options in includes/
features.field.inc - Implements hook_features_export_options().
- filter_features_export_options in includes/
features.filter.inc - Implements hook_features_export_options().
- image_features_export_options in includes/
features.image.inc - Implements hook_features_export_options().
File
- ./
features.api.php, line 131
Code
function hook_features_export_options() {
$options = array();
foreach (mycomponent_load() as $mycomponent) {
$options[$mycomponent->name] = $mycomponent->title;
}
return $options;
}