protected function I18nTranslationSetController::attachLoad in Internationalization 7
Builds objects of specific classes upon loading.
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 the most current revision was loaded.
Overrides DrupalDefaultEntityController::attachLoad
File
- i18n_translation/
i18n_translation.module, line 26 - Internationalization (i18n) module - Entity translations
Class
- I18nTranslationSetController
- Default entity controller for notifications objects
Code
protected function attachLoad(&$queried_entities, $revision_id = FALSE) {
foreach ($queried_entities as $id => $entity) {
$queried_entities[$id] = i18n_translation_set_build($entity->type, $entity);
}
return parent::attachLoad($queried_entities, $revision_id);
}