From 160a1e0ef81c93e805c20e266ab3c8a3890eddac Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 17 Jul 2005 18:29:32 +0000 Subject: - Patch #25634 by chx: simplified node_load(). --- modules/blogapi/blogapi.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/blogapi/blogapi.module') diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module index 3fe48489e..1a4e8f6b7 100644 --- a/modules/blogapi/blogapi.module +++ b/modules/blogapi/blogapi.module @@ -233,7 +233,7 @@ function blogapi_blogger_edit_post($appkey, $postid, $username, $password, $cont return blogapi_error($user); } - $node = node_load(array('nid' => $postid)); + $node = node_load('nid' => $postid); if (!$node) { return blogapi_error(message_na()); } @@ -330,7 +330,7 @@ function blogapi_metaweblog_get_post($postid, $username, $password) { return blogapi_error($user); } - $node = node_load(array('nid' => $postid)); + $node = node_load('nid' => $postid); return _blogapi_get_post($node, true); } @@ -469,7 +469,7 @@ function blogap_mti_publish_post($postid, $username, $password) { if (!$user->uid) { return blogapi_error($user); } - $node = node_load(array('nid' => $postid)); + $node = node_load('nid' => $postid); if (!$node) { return blogapi_error(t('Invalid post.')); } -- cgit v1.2.3