You are here

function blogapi_blogger_get_post in Drupal 5

Same name and namespace in other branches
  1. 4 modules/blogapi.module \blogapi_blogger_get_post()
  2. 6 modules/blogapi/blogapi.module \blogapi_blogger_get_post()

Blogging API callback. Returns a specified blog node.

1 call to blogapi_blogger_get_post()
blogapi_metaweblog_get_post in modules/blogapi/blogapi.module
1 string reference to 'blogapi_blogger_get_post'
blogapi_xmlrpc in modules/blogapi/blogapi.module
Implementation of hook_xmlrpc().

File

modules/blogapi/blogapi.module, line 304
Enable users to post using applications that support XML-RPC blog APIs.

Code

function blogapi_blogger_get_post($appkey, $postid, $username, $password) {
  $user = blogapi_validate_user($username, $password);
  if (!$user->uid) {
    return blogapi_error($user);
  }
  $node = node_load($postid);
  return _blogapi_get_post($node, TRUE);
}