function entity_entity_view_content_type_content_types

cis7 entity_view.inc entity_entity_view_content_type_content_types()
cle7 entity_view.inc entity_entity_view_content_type_content_types()
elmsmedia7 entity_view.inc entity_entity_view_content_type_content_types()
icor7 entity_view.inc entity_entity_view_content_type_content_types()
meedjum_blog7 entity_view.inc entity_entity_view_content_type_content_types()
mooc7 entity_view.inc entity_entity_view_content_type_content_types()

Implements hook_PLUGIN_content_type_content_types().

Rendered entity use entity types machine name as subtype name.

1 call to entity_entity_view_content_type_content_types()
entity_entity_view_content_type_info in sites/all/modules/ulmus/entity/ctools/content_types/entity_view.inc
Get the entity content type info.

File

sites/all/modules/ulmus/entity/ctools/content_types/entity_view.inc, line 30
Content type plugin to expose rendered entities, view mode configuration still available.

Code

function entity_entity_view_content_type_content_types() {
  $types = array();
  $entities = entity_get_info();

  foreach ($entities as $entity_type => $info) {
    if (entity_type_supports($entity_type, 'view')) {
      $types[$entity_type] = array(
        'title' => t('Rendered @entity_type', array('@entity_type' => $info['label'])),
        'category' => t('Entity'),
        'required context' => new ctools_context_required(t('Entity'), $entity_type),
      );
    }
  }

  return $types;
}