blogapi_blogger_delete_post

Versions
4.6 – 6
blogapi_blogger_delete_post($appkey, $postid, $username, $password, $publish)

Blogging API callback. Removes the specified blog node.

Code

modules/blogapi.module, line 310

<?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;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.