function ctools_component_features_export_options in Features 6
Same name and namespace in other branches
- 7.2 includes/features.ctools.inc \ctools_component_features_export_options()
- 7 includes/features.ctools.inc \ctools_component_features_export_options()
Master implementation of hook_features_export_options() for all ctools components.
1 call to ctools_component_features_export_options()
- context_features_export_options in includes/
features.context.inc - Implementation of hook_features_export_options();
File
- includes/
features.ctools.inc, line 105
Code
function ctools_component_features_export_options($component) {
$options = array();
ctools_include('export');
$schema = ctools_export_get_schema($component);
if ($schema && $schema['export']['bulk export']) {
if (!empty($schema['export']['list callback']) && function_exists($schema['export']['list callback'])) {
$options = $schema['export']['list callback']();
}
else {
$options = _ctools_features_export_default_list($component, $schema);
}
}
asort($options);
return $options;
}