You are here

function schemaorg_features_export_options in Schema.org 7

Implementation of hook_features_export_options().

Provides an array of components that can be exported for a given type.

File

./schemaorg.features.inc, line 31

Code

function schemaorg_features_export_options() {
  $bundles = array();
  foreach (entity_get_info() as $entity_type => $entity) {
    foreach ($entity['bundles'] as $bundle_name => $bundle) {
      $bundles[$entity_type . '-' . $bundle_name] = $entity['label'] . ': ' . $bundle['label'];
    }
  }
  return $bundles;
}