You are here

function private_disable in Private 6

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

Implementation of 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 31
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_rebuild(TRUE);
}