From e4ca439ba1f901526526f73adb106f7075fb5f11 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 1 Nov 2009 12:11:10 +0000 Subject: - Patch #595084 by c960657: use type hinting for . --- modules/node/tests/node_test.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/node/tests') 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. -- cgit v1.2.3