Search for access

  1. Search 3.x for access
  2. Search 8.x-1.x for access
  3. Search 7.x-1.x for access
  4. Search 4.0.x for access
  5. Other projects
Title Object type File name Summary
Example: Node Access group node_access_example/node_access_example.module Examples of node access restriction. (drupal 6)
node_access_example.info file node_access_example/node_access_example.info name = Node access example
description = Demonstrates how to restrict access to nodes.
core = 6.x
package = Example modules
node_access_example.install file node_access_example/node_access_example.install Node access example module's install and uninstall code.
node_access_example.module file node_access_example/node_access_example.module This is an example illustrating how to restrict access to nodes based
on some criterion associated with the user.
node_access_example_form_alter function node_access_example/node_access_example.module Implementation of hook_form_alter()
NODE_ACCESS_EXAMPLE_GRANT_ALL constant node_access_example/node_access_example.module Here we define a constant for our node access grant ID, for the example realm.
This ID could be any integer, but here we choose 23,
because it is this author's favorite number.
node_access_example_install function node_access_example/node_access_example.install Implementation of hook_install().
node_access_example_nodeapi function node_access_example/node_access_example.module Implementation of hook_nodeapi().
node_access_example_node_access_records function node_access_example/node_access_example.module Implements hook_node_access_records().
node_access_example_node_grants function node_access_example/node_access_example.module Implements hook_node_grants().
node_access_example_perm function node_access_example/node_access_example.module Implementation of hook_perm().
node_access_example_schema function node_access_example/node_access_example.install Implementation of hook_schema().
node_access_example_uninstall function node_access_example/node_access_example.install Implementation of hook_uninstall().
node_example_access function node_example/node_example.module Implementation of hook_access().
PageExampleTestCase::pageExampleVerifyNoAccess function page_example/page_example.test Verify that current user has no access to page.
page_example_custom_access_callback function page_example/page_example.module If your custom access callback function checks
for permissions, it should still use user_access.
You may add whatever additional logic you like, though.
page_example_custom_access_page function page_example/page_example.module Page callback to demonstrate a custom access callback.
simpletest_example_access function simpletest_example/simpletest_example.module Implementation of hook_access().