function private_disable in Private 5
Same name and namespace in other branches
- 6 private.module \private_disable()
- 7.2 private.install \private_disable()
- 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 44 - This is an example illustrating how to restrict access to nodes based on some criterion associated with the user.
Code
function private_disable() {
private_disabling(TRUE);
node_access_rebuild();
}