NODE_ACCESS_EXAMPLE_GRANT_ALL

  1. examples
    1. 7 node_access_example/node_access_example.module
    2. 8 node_access_example/node_access_example.module

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)

Related topics

Login or register to post comments