- examples
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.
File
- node_access_example/
node_access_example.module, line 231 - Module file illustrating API-based node access.
Code
define('NODE_ACCESS_EXAMPLE_GRANT_ALL', 23)