You are here

function private_enable in Private 7

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

Implements 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 22
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_needs_rebuild(TRUE);
}