Search for access
Title | Object type | File name | Summary |
---|---|---|---|
Example: Node Access | group | node_access_example/ |
Demonstrates node access. |
field_permission_example_field_access | function | field_permission_example/ |
Implements hook_field_access(). |
menu_example_custom_access | function | menu_example/ |
Determine whether the current user has the role specified. |
NodeAccessExampleTestCase | class | node_access_example/ |
Functional tests for the Node Access Example module. |
NodeAccessExampleTestCase::checkNodeAccess | function | node_access_example/ |
Helper function. |
NodeAccessExampleTestCase::checkResponse | function | node_access_example/ |
Helper function. |
NodeAccessExampleTestCase::checkSearchResults | function | node_access_example/ |
Helper function. |
NodeAccessExampleTestCase::getInfo | function | node_access_example/ |
|
NodeAccessExampleTestCase::setUp | function | node_access_example/ |
Enable modules and create user with specific permissions. |
NodeAccessExampleTestCase::testNodeAccessBasic | function | node_access_example/ |
Test the "private" node access. |
node_access_example.info | file | node_access_example/ |
name = Node access example description = Demonstrates how a module can use Drupal's node access system package = Example modules core = 7.x files[] = node_access_example.test |
node_access_example.install | file | node_access_example/ |
Install, update, and uninstall functions for the node_access_example module. |
node_access_example.module | file | node_access_example/ |
Module file illustrating API-based node access. |
node_access_example.test | file | node_access_example/ |
Tests for Node Access example module. |
node_access_example_form_alter | function | node_access_example/ |
Implements 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 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. |
node_access_example_menu | function | node_access_example/ |
Implements hook_menu(). |
node_access_example_node_access | function | node_access_example/ |
Implements hook_node_access(). |
node_access_example_node_access_records | function | node_access_example/ |
Implements hook_node_access_records(). |
node_access_example_node_delete | function | node_access_example/ |
Implements hook_node_delete(). |
node_access_example_node_grants | function | node_access_example/ |
Implements hook_node_grants(). |
node_access_example_node_insert | function | node_access_example/ |
Implements hook_node_insert(). |
node_access_example_node_load | function | node_access_example/ |
Implements hook_node_load(). |
node_access_example_node_update | function | node_access_example/ |
Implements hook_node_update(). |
node_access_example_permission | function | node_access_example/ |
Implements hook_permission(). |
node_access_example_private_node_listing | function | node_access_example/ |
Our hook_menu() page callback function. |
node_access_example_schema | function | node_access_example/ |
Implements hook_schema(). |
PageExampleTestCase::pageExampleVerifyNoAccess | function | page_example/ |
Verify that current user has no access to page. |
simpletest_example_node_access | function | simpletest_example/ |
Implements hook_node_access(). |