diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-11-01 12:11:10 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-11-01 12:11:10 +0000 |
commit | e4ca439ba1f901526526f73adb106f7075fb5f11 (patch) | |
tree | 76eb2589699014fb67f5f10fdaef86d6ba1a0821 /modules/node/tests | |
parent | 534c89f21e46116d1a627057158ca1fd02b129a6 (diff) | |
download | brdo-e4ca439ba1f901526526f73adb106f7075fb5f11.tar.gz brdo-e4ca439ba1f901526526f73adb106f7075fb5f11.tar.bz2 |
- Patch #595084 by c960657: use type hinting for .
Diffstat (limited to 'modules/node/tests')
-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. |