You are here

function private_disable in Private 7

Same name and namespace in other branches
  1. 5 private.module \private_disable()
  2. 6 private.module \private_disable()
  3. 7.2 private.install \private_disable()

Implements hook_disable().

A node access module needs to force a rebuild of the node access table when it is disabled to ensure that its entries are removed from the table.

File

./private.module, line 32
A tremendously simple access control module -- it allows users to mark individual nodes as private; users with 'access private content' perms can read these nodes, while others cannot.

Code

function private_disable() {
  private_disabling(TRUE);
  node_access_needs_rebuild(TRUE);
}