function rdf_mapping_delete

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

TRUE if the mapping is deleted, FALSE if not.

Related topics

1 call to rdf_mapping_delete()
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 267
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);
}