You are here

function private_enable in Private 6

Same name and namespace in other branches
  1. 5 private.module \private_enable()
  2. 7 private.module \private_enable()

Implementation of hook_enable().

A node access module needs to force a rebuild of the node access table when it is enabled to ensure that things are set up.

File

./private.module, line 21
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_enable() {
  node_access_rebuild(TRUE);
}