You are here

function node_gallery_delete_gallery in Node Gallery 6.3

Deletes a gallery from the database.

Parameters

$node: A populated node object that is a node gallery gallery.

1 call to node_gallery_delete_gallery()
_node_gallery_delete in ./node_gallery.module
Deletes the child image nodes when deleting a gallery.

File

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

Code

function node_gallery_delete_gallery($node) {

  // Clean up our tables
  db_query("DELETE FROM {node_gallery_galleries} WHERE gid = %d", $node->nid);
}