protected function MessagingEntityController::attachLoad in Messaging 7
Builds objects of specific classes upon loading.
The class will be in 'base class' parameter
Parameters
$queried_entities: Associative array of query results, keyed on the entity ID.
$revision_id: ID of the revision that was loaded, or FALSE if teh most current revision was loaded.
Overrides DrupalDefaultEntityController::attachLoad
File
- ./
messaging.module, line 68
Class
- MessagingEntityController
- Default entity controller for notifications objects
Code
protected function attachLoad(&$queried_entities, $revision_id = FALSE) {
$class = $this->entityInfo['base class'];
foreach ($queried_entities as $id => $entity) {
$queried_entities[$id] = call_user_func(array(
$class,
'build_object',
), $entity);
}
return parent::attachLoad($queried_entities, $revision_id);
}