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/blog | |
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/blog')
-rw-r--r-- | modules/blog/blog.module | 6 | ||||
-rw-r--r-- | modules/blog/blog.test | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 1198f27e2..a51a238b1 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -50,14 +50,14 @@ function blog_help($path, $arg) { /** * Implement hook_form(). */ -function blog_form(stdClass $node, $form_state) { +function blog_form($node, $form_state) { return node_content_form($node, $form_state); } /** * Implement hook_view(). */ -function blog_view(stdClass $node, $build_mode) { +function blog_view($node, $build_mode) { if ((bool)menu_get_object()) { // Breadcrumb navigation. drupal_set_breadcrumb(array(l(t('Home'), NULL), l(t('Blogs'), 'blog'), l(t("!name's blog", array('!name' => format_username($node))), 'blog/' . $node->uid))); @@ -68,7 +68,7 @@ function blog_view(stdClass $node, $build_mode) { /** * Implement hook_node_view(). */ -function blog_node_view(stdClass $node, $build_mode = 'full') { +function blog_node_view($node, $build_mode = 'full') { if ($build_mode != 'rss') { if ($node->type == 'blog' && arg(0) != 'blog' || arg(1) != $node->uid) { $links['blog_usernames_blog'] = array( diff --git a/modules/blog/blog.test b/modules/blog/blog.test index c00a93399..2d0028522 100644 --- a/modules/blog/blog.test +++ b/modules/blog/blog.test @@ -116,7 +116,7 @@ class BlogTestCase extends DrupalWebTestCase { * @param integer $response * HTTP response code. */ - private function verifyBlogs($node_user, stdClass $node, $admin, $response = 200) { + private function verifyBlogs($node_user, $node, $admin, $response = 200) { $crumb = '›'; $quote = '''; |