function eckentity_load in Entity Construction Kit (ECK) 7.2
Same name and namespace in other branches
- 7.3 eck.module \eckentity_load()
Load callback for %eckentity.
File
- ./
eck.module, line 23
Code
function eckentity_load($id, $type) {
try {
$entity = entity_load_single($type, $id);
} catch (Exception $ex) {
drupal_not_found();
exit;
}
return $entity;
}