function rdf_mapping_delete

rdf_mapping_delete($type, $bundle)

Deletes the mapping for the given bundle from the database.

Parameters

$type: The entity type the mapping refers to.

$bundle: The bundle the mapping refers to.

Return value

Return boolean TRUE if mapping deleted, FALSE if not.

Related topics

File

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

Code

function rdf_mapping_delete($type, $bundle) {
  $num_rows = db_delete('rdf_mapping')
    ->condition('type', $type)
    ->condition('bundle', $bundle)
    ->execute();

  return (bool) ($num_rows > 0);
}

© 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_delete/7.x