You are here

function sbp_test_node_delete in Search by Page 7

Implements hook_node_delete().

Manage the "private" flag on nodes. Code taken form the Node Access Example module on drupal.org.

File

tests/sbp_test.module, line 121
Module file for Search by Page testing.

Code

function sbp_test_node_delete($node) {
  db_delete('sbp_test_access')
    ->condition('nid', $node->nid)
    ->execute();
}