function hierarchical_select_features_export_options in Hierarchical Select 6.3
Same name and namespace in other branches
- 7.3 hierarchical_select.features.inc \hierarchical_select_features_export_options()
Implementation of hook_features_export_options().
File
- ./
hierarchical_select.features.inc, line 39 - Integration with the features module.
Code
function hierarchical_select_features_export_options() {
// Retrieve all information items.
$info_items = array();
foreach (module_implements('hierarchical_select_config_info') as $module) {
$info_items = array_merge_recursive($info_items, module_invoke($module, 'hierarchical_select_config_info'));
}
// Process the retrieved information into options.
$options = array();
foreach ($info_items as $id => $item) {
$config_id = $item['config_id'];
$options[$config_id] = $item['hierarchy type'] . ': ' . check_plain($item['hierarchy']) . ' - ' . $item['context type'] . (!empty($item['context']) ? ': ' . $item['context'] : '');
}
return $options;
}