You are here

function relation_delete in Relation 7

Deletes a relation.

Parameters

$rid: The numeric id of the relation to be deleted.

2 calls to relation_delete()
RelationAPITestCase::testRelationTypes in tests/relation.test
Tests relation types.
relation_ui_delete_confirm_submit in ./relation_ui.module
Executes relation deletion.
2 string references to 'relation_delete'
relation_delete_multiple in ./relation.module
Deletes a relation.
relation_entity_info in ./relation.module
Implements hook_entity_info().

File

./relation.module, line 715
Describes relations between entities.

Code

function relation_delete($rid) {
  relation_delete_multiple(array(
    $rid,
  ));
}