1.14 (checked in on 2008/10/12 at 08:52:36 by davereid)
This is an example illustrating how to restrict access to nodes based on some criterion associated with the user.
This example module will simply set a single flag on a node: 'private'. If the flag is set, only users with the 'view private content' flag can see the node, and all users with 'edit private content' can edit (but not delete) the node.
Additionally we will ensure that the node author can always view, edit, and delete the node by providing an additional access realm that grants privileges to the node's author.
| Name | Description |
|---|---|
| node_access_example_form_alter | Implementation of hook_form_alter() |
| node_access_example_nodeapi_delete | |
| node_access_example_nodeapi_insert | Implementation of hook_nodeapi_insert(). |
| node_access_example_nodeapi_load | |
| node_access_example_nodeapi_update | Implementation of hook_nodeapi_update(). |
| node_access_example_node_access_records | Implementation of hook_node_access_records(). |
| node_access_example_node_grants | Implementation of hook_node_grants(). |
| node_access_example_perm | Implementation of hook_perm(). |