blogapi_blogger_get_post

Definition

blogapi_blogger_get_post($appkey, $postid, $username, $password)
drupal/modules/blogapi/blogapi.module, line 312

Description

Blogging API callback. Returns a specified blog node.

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);
}