function conditional_fields_features_export_options in Conditional Fields 7.3
Same name and namespace in other branches
- 6.2 includes/conditional_fields.features.inc \conditional_fields_features_export_options()
Implements hook_features_export_options().
File
- includes/
conditional_fields.features.inc, line 10 - Features integration hooks.
Code
function conditional_fields_features_export_options() {
$dependencies = conditional_fields_load_dependencies();
$entity_info = entity_get_info();
$options = array();
foreach ($dependencies as $type => $data) {
foreach ($data as $dependency => $info) {
$option = $type . ':' . $dependency;
if (!isset($options[$dependency])) {
$options[$option] = $entity_info[$type]['bundles'][$dependency]['label'] . ' (' . $type . ')';
}
}
}
return $options;
}