You are here

function eckentity_load in Entity Construction Kit (ECK) 7.3

Same name and namespace in other branches
  1. 7.2 eck.module \eckentity_load()

Load callback for %eckentity.

File

./eck.module, line 26

Code

function eckentity_load($id, $type) {
  try {
    $entity = entity_load_single($type, $id);
  } catch (Exception $ex) {
    drupal_not_found();
    exit;
  }
  return $entity;
}