You are here

function data_entity_item_load in Data 7

Menu loader callback.

Called 'data_entity_item_load' to avoid being data's hook_entity_load()!

File

data_entity/data_entity.module, line 185
data_entity.module TODO: Enter file description here.

Code

function data_entity_item_load($deid, $table_name) {
  $entity_type = 'data_' . $table_name;
  $data_entity = entity_load($entity_type, array(
    $deid,
  ));
  return $data_entity ? reset($data_entity) : FALSE;
}