blogapi_blogger_delete_post

5 blogapi.module blogapi_blogger_delete_post($appkey, $postid, $username, $password, $publish)
6 blogapi.module blogapi_blogger_delete_post($appkey, $postid, $username, $password, $publish)

Blogging API callback. Removes the specified blog node.

1 string reference to 'blogapi_blogger_delete_post'

File

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

Code

function blogapi_blogger_delete_post($appkey, $postid, $username, $password, $publish) {
  $user = blogapi_validate_user($username, $password);
  if (!$user->uid) {
    return blogapi_error($user);
  }

  node_delete(array('nid' => $postid, 'confirm' => 1));
  return true;
}
Login or register to post comments