You are here

function eck__entity__view in Entity Construction Kit (ECK) 7

Same name and namespace in other branches
  1. 7.3 eck.entity.inc \eck__entity__view()
  2. 7.2 eck.entity.inc \eck__entity__view()

Creates a renderable array to show an entity

Parameters

$entity_type: (String) entity type

$bundle: (String) Bundle

$id: (int) the Id of the entity to be deleted

File

./eck.entity.inc, line 361
All the menus, pages, and functionality related to administering entities.

Code

function eck__entity__view($entity_type, $bundle, $id) {
  $build = array();
  $entity_view = eck__entity__build($entity_type, $bundle, $id);
  $build["{$entity_type->name}_{$bundle->name}_page"] = $entity_view;
  return $build;
}