Search for access
- Search 3.x for access
- Search 8.x-1.x for access
- Search 7.x-1.x for access
- Search 4.0.x for access
- Other projects
Title | Object type | File name | Summary |
---|---|---|---|
Example: Node Access | group | node_access_example/ |
Examples of node access restriction. (drupal 6) |
node_access_example.info | file | node_access_example/ |
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 module's install and uninstall code. |
node_access_example.module | file | node_access_example/ |
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/ |
Implementation of hook_form_alter() |
NODE_ACCESS_EXAMPLE_GRANT_ALL | constant | node_access_example/ |
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/ |
Implementation of hook_install(). |
node_access_example_nodeapi | function | node_access_example/ |
Implementation of hook_nodeapi(). |
node_access_example_node_access_records | function | node_access_example/ |
Implements hook_node_access_records(). |
node_access_example_node_grants | function | node_access_example/ |
Implements hook_node_grants(). |
node_access_example_perm | function | node_access_example/ |
Implementation of hook_perm(). |
node_access_example_schema | function | node_access_example/ |
Implementation of hook_schema(). |
node_access_example_uninstall | function | node_access_example/ |
Implementation of hook_uninstall(). |
node_example_access | function | node_example/ |
Implementation of hook_access(). |
PageExampleTestCase::pageExampleVerifyNoAccess | function | page_example/ |
Verify that current user has no access to page. |
page_example_custom_access_callback | function | page_example/ |
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 callback to demonstrate a custom access callback. |
simpletest_example_access | function | simpletest_example/ |
Implementation of hook_access(). |