blogapi_blogger_delete_post

Definition

blogapi_blogger_delete_post($appkey, $postid, $username, $password, $publish)
modules/blogapi/blogapi.module, line 312

Description

Blogging API callback. Removes the specified blog node.

Code

<?php
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($postid);
  return TRUE;
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.