You are here

function node_gallery_delete_relationship in Node Gallery 6.3

Deletes a relationship from the database.

Parameters

$rid: The value in the rid column in the database.

1 call to node_gallery_delete_relationship()
node_gallery_relationship_delete_form_submit in ./node_gallery.admin.inc
Submit handler for the deletion form.

File

./node_gallery.inc, line 176
Shared functions for node_gallery

Code

function node_gallery_delete_relationship($rid) {
  db_query("DELETE FROM {node_gallery_relationships} WHERE rid = %d", $rid);
  menu_cache_clear_all();
}