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;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.