On this page
function _rdf_mapping_load_multiple
_rdf_mapping_load_multiple($type, array $bundles)Helper function to retrieve a set of RDF mappings from the database.
Parameters
$type: The entity type of the mappings.
$bundles: The bundles the mappings refer to.
Return value
An array of RDF mapping structures, or an empty array.
File
- modules/rdf/rdf.module, line 208
- Enables semantically enriched output for Drupal sites in the form of RDFa.
Code
function _rdf_mapping_load_multiple($type, array $bundles) {
  $mappings = db_select('rdf_mapping')
    ->fields(NULL, array('bundle', 'mapping'))
    ->condition('type', $type)
    ->condition('bundle', $bundles)
    ->execute()
    ->fetchAllKeyed();
  foreach ($mappings as $bundle => $mapping) {
    $mappings[$bundle] = unserialize($mapping);
  }
  return $mappings;
}
© 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_multiple/7.x