summaryrefslogtreecommitdiff
path: root/modules/blogapi/blogapi.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-07-17 18:29:32 +0000
committerDries Buytaert <dries@buytaert.net>2005-07-17 18:29:32 +0000
commit160a1e0ef81c93e805c20e266ab3c8a3890eddac (patch)
treef29240cc40397bc1bf33aecfe4998ad9093cc135 /modules/blogapi/blogapi.module
parented3bf725bb3b22f65efbe5c9c3d96c8e6f1a0fd2 (diff)
downloadbrdo-160a1e0ef81c93e805c20e266ab3c8a3890eddac.tar.gz
brdo-160a1e0ef81c93e805c20e266ab3c8a3890eddac.tar.bz2
- Patch #25634 by chx: simplified node_load().
Diffstat (limited to 'modules/blogapi/blogapi.module')
-rw-r--r--modules/blogapi/blogapi.module6
1 files changed, 3 insertions, 3 deletions
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.'));
}