function _rdf_mapping_load

_rdf_mapping_load($type, $bundle)

Helper function to retrieve 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 an empty array if no record was found.

File

modules/rdf/rdf.module, line 192
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) : array();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!rdf!rdf.module/function/_rdf_mapping_load/7.x