function _rdf_mapping_load

Retrieves an RDF mapping from the database.

Parameters

$type: The entity type the mapping refers to.

$bundle: The bundle the mapping refers to.

Return value

An RDF mapping structure or, FALSE if the mapping does not exist.

1 call to _rdf_mapping_load()
CrudTest::testCRUD in drupal/core/modules/rdf/lib/Drupal/rdf/Tests/CrudTest.php
Tests inserting, loading, updating, and deleting RDF mappings.

File

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

Code

function _rdf_mapping_load($type, $bundle) {
  $mappings = _rdf_mapping_load_multiple($type, array(
    $bundle,
  ));
  return $mappings ? reset($mappings) : FALSE;
}