From 4d46b7cdf838900dc3f052197b63a9ce80d3992b Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 8 Nov 2009 10:02:41 +0000 Subject: Roll-back of #595084; type-hinting parameters at stdClass makes it so you can't ever pass in another type of class. --- modules/node/tests/node_test.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/node/tests/node_test.module') diff --git a/modules/node/tests/node_test.module b/modules/node/tests/node_test.module index 2af1c202d..dc354ff80 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(stdClass $node, $build_mode) { +function node_test_node_view($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(stdClass $node) { +function node_test_node_access_records($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(stdClass $node) { /** * Implement hook_node_access_records_alter(). */ -function node_test_node_access_records_alter(&$grants, stdClass $node) { +function node_test_node_access_records_alter(&$grants, $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