function hook_features_export_options in Features 6
Same name and namespace in other branches
- 7.2 features.api.php \hook_features_export_options()
- 7 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.
14 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.
- content_features_export_options in includes/
features.content.inc - Implementation of hook_features_export_options().
- context_features_export_options in includes/
features.context.inc - Implementation of 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 - Implementation of hook_features_export_options().
- filter_features_export_options in includes/
features.filter.inc - Implementation of hook_features_export_options().
File
- ./
features.api.php, line 123
Code
function hook_features_export_options() {
$options = array();
foreach (mycomponent_load() as $mycomponent) {
$options[$mycomponent->name] = $mycomponent->title;
}
return $options;
}