function sarnia_load in Sarnia 7
Same name in this branch
- 7 sarnia.api.php \sarnia_load()
- 7 sarnia.module \sarnia_load()
Menu load callback; load a Sarnia entity.
File
- ./
sarnia.module, line 324
Code
function sarnia_load($entity_id, $entity_type) {
if ($entities = entity_load($entity_type, array(
$entity_id,
))) {
return $entities[$entity_id];
}
return FALSE;
}