Module file illustrating API-based node access.

File

modules/examples/node_access_example/node_access_example.module

Functions

Constants

Namesort ascending Description
NODE_ACCESS_EXAMPLE_GRANT_ALL Here we define a constant for our node access grant ID, for the node_access_example_view and node_access_example_edit realms. This ID could be any integer, but here we choose 23, because it is this author's favorite number.