diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-08 10:02:41 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-08 10:02:41 +0000 |
commit | 4d46b7cdf838900dc3f052197b63a9ce80d3992b (patch) | |
tree | b3ea3efb3c29a98afb8724c5655b82864395b928 /modules/statistics/statistics.module | |
parent | 370d07e9f75bf5ebdd6ac87de0f0b956d3f8dabd (diff) | |
download | brdo-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/statistics/statistics.module')
-rw-r--r-- | modules/statistics/statistics.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index b9a153cc5..611c650b7 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -103,7 +103,7 @@ function statistics_permission() { /** * Implement hook_node_view(). */ -function statistics_node_view(stdClass $node, $build_mode) { +function statistics_node_view($node, $build_mode) { if ($build_mode != 'rss') { $links = array(); if (user_access('view post access counter')) { @@ -376,7 +376,7 @@ function _statistics_format_item($title, $path) { /** * Implement hook_node_delete(). */ -function statistics_node_delete(stdClass $node) { +function statistics_node_delete($node) { // clean up statistics table when node is deleted db_delete('node_counter') ->condition('nid', $node->nid) |