diff options
Diffstat (limited to 'modules/node/tests/node_test.module')
-rw-r--r-- | modules/node/tests/node_test.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/node/tests/node_test.module b/modules/node/tests/node_test.module index dc354ff80..2af1c202d 100644 --- a/modules/node/tests/node_test.module +++ b/modules/node/tests/node_test.module @@ -10,7 +10,7 @@ /** * Implement hook_node_view(). */ -function node_test_node_view($node, $build_mode) { +function node_test_node_view(stdClass $node, $build_mode) { if ($build_mode == 'rss') { // Add RSS elements and namespaces when building the RSS feed. $node->rss_elements[] = array( @@ -51,7 +51,7 @@ function node_test_node_grants($account, $op) { /** * Implement hook_node_access_records(). */ -function node_test_node_access_records($node) { +function node_test_node_access_records(stdClass $node) { $grants = array(); if ($node->type == 'article') { // Create grant in arbitrary article_realm for article nodes. @@ -81,7 +81,7 @@ function node_test_node_access_records($node) { /** * Implement hook_node_access_records_alter(). */ -function node_test_node_access_records_alter(&$grants, $node) { +function node_test_node_access_records_alter(&$grants, stdClass $node) { if (!empty($grants)) { foreach ($grants as $key => $grant) { // Alter grant from test_page_realm to test_alter_realm and modify the gid. |