function eck_get_entity_label in Entity Construction Kit (ECK) 7
Retrieve the entity label
@todo Where am I using this??
File
- ./
eck.module, line 335 - ENTITY CONSTRUCTION KIT
Code
function eck_get_entity_label($entity_type, $entity_id) {
if (!is_numeric($entity_id)) {
return FALSE;
}
$entity = entity_load($entity_type, array(
$entity_id,
));
$entity = $entity[$entity_id];
if (is_object($entity) && !empty($entity)) {
return entity_label($entity_type, $entity);
}
else {
return NULL;
}
}