function DataEntityController::load in Data 7
Overridden.
In contrast to the parent implementation we factor out query execution, so fetching can be further customized easily.
Overrides EntityAPIController::load
See also
DrupalDefaultEntityController#load($ids, $conditions)
File
- data_entity/
data_entity.entity.inc, line 21
Class
- DataEntityController
- Entity controller class for Data entities.
Code
function load($ids = array(), $conditions = array()) {
$entities = parent::load($ids, $conditions);
foreach ($entities as $id => $entity) {
$entity->data_table = $this->dataTable;
// Needed until Drupal core fixes this WTF. @see http://drupal.org/node/1042822.
$entity->entity_type = $this->entityType;
}
return $entities;
}