function blogapi_blogger_get_post in Blog API 7
Same name and namespace in other branches
- 8 modules/blogapi_blogger/blogapi_blogger.module \blogapi_blogger_get_post()
- 7.2 modules/blogapi_blogger/blogapi_blogger.module \blogapi_blogger_get_post()
Blogging API callback. Returns a specified blog node.
1 call to blogapi_blogger_get_post()
1 string reference to 'blogapi_blogger_get_post'
- blogapi_xmlrpc in ./blogapi.module 
- Implement hook_xmlrpc().
File
- ./blogapi.module, line 354 
- 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);
}