Commit 3a0d53fe authored by Gábor Hojtsy's avatar Gábor Hojtsy

Issue #118108 by Chris Johnson, cburschka, bleen18: remove node_access table...

Issue #118108 by Chris Johnson, cburschka, bleen18: remove node_access table entries when a node is deleted to avoid leftover cruft
parent 90e95167
......@@ -973,6 +973,7 @@ function node_delete($nid) {
if (node_access('delete', $node)) {
db_query('DELETE FROM {node} WHERE nid = %d', $node->nid);
db_query('DELETE FROM {node_revisions} WHERE nid = %d', $node->nid);
db_query('DELETE FROM {node_access} WHERE nid = %d', $node->nid);
// Call the node-specific callback (if any):
node_invoke($node, 'delete');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment