You are here

function title_entity_prepare_view in Title 7

Same name and namespace in other branches
  1. 8.2 title.module \title_entity_prepare_view()

Implements hook_entity_prepare_view().

On load synchronization is performed using the current display language. A different language might be specified while viewing the entity in which case synchronization must be performed again.

File

./title.module, line 265

Code

function title_entity_prepare_view($entities, $type, $langcode) {
  foreach ($entities as &$entity) {
    title_entity_sync($type, $entity, $langcode);
  }
}