function _rdf_mapping_load
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.
1 call to _rdf_mapping_load()
- RdfCrudTestCase::testCRUD in modules/
rdf/ rdf.test - Test inserting, loading, updating, and deleting RDF mappings.
File
-
modules/
rdf/ rdf.module, line 192
Code
function _rdf_mapping_load($type, $bundle) {
$mappings = _rdf_mapping_load_multiple($type, array(
$bundle,
));
return $mappings ? reset($mappings) : array();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.