You are here

function field_features_export_options in Features 7

Same name and namespace in other branches
  1. 7.2 includes/features.field.inc \field_features_export_options()

Implements hook_features_export_options().

File

includes/features.field.inc, line 21

Code

function field_features_export_options() {
  $options = array();
  $instances = field_info_instances();
  foreach ($instances as $entity_type => $bundles) {
    foreach ($bundles as $bundle => $fields) {
      foreach ($fields as $field) {
        $identifier = "{$entity_type}-{$bundle}-{$field['field_name']}";
        $options[$identifier] = $identifier;
      }
    }
  }
  return $options;
}