Implements hook_entity_load().

File

modules/rdf/rdf.module, line 408
Enables semantically enriched output for Drupal sites in the form of RDFa.

Code

function rdf_entity_load($entities, $type) {
  foreach ($entities as $entity) {

    // Extracts the bundle of the entity being loaded.
    list($id, $vid, $bundle) = entity_extract_ids($type, $entity);
    $entity->rdf_mapping = rdf_mapping_load($type, $bundle);
  }
}