function rdf_entity_load

Implements hook_entity_load().

File

drupal/core/modules/rdf/rdf.module, line 416
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.
    $entity->rdf_mapping = rdf_mapping_load($type, $entity
      ->bundle());
  }
}