summaryrefslogtreecommitdiff
path: root/modules/node/tests
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-08 10:02:41 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-08 10:02:41 +0000
commit4d46b7cdf838900dc3f052197b63a9ce80d3992b (patch)
treeb3ea3efb3c29a98afb8724c5655b82864395b928 /modules/node/tests
parent370d07e9f75bf5ebdd6ac87de0f0b956d3f8dabd (diff)
downloadbrdo-4d46b7cdf838900dc3f052197b63a9ce80d3992b.tar.gz
brdo-4d46b7cdf838900dc3f052197b63a9ce80d3992b.tar.bz2
Roll-back of #595084; type-hinting parameters at stdClass makes it so you can't ever pass in another type of class.
Diffstat (limited to 'modules/node/tests')
-rw-r--r--modules/node/tests/node_test.module6
1 files changed, 3 insertions, 3 deletions
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.