You are here

function blogapi_blogger_delete_post in Blog API 7.2

Same name and namespace in other branches
  1. 8 modules/blogapi_blogger/blogapi_blogger.module \blogapi_blogger_delete_post()
  2. 7 blogapi.module \blogapi_blogger_delete_post()

Service callback for blogger.deletePost

1 string reference to 'blogapi_blogger_delete_post'
blogapi_blogger_services_resources in modules/blogapi_blogger/blogapi_blogger.module
Implements hook_services_resources().

File

modules/blogapi_blogger/blogapi_blogger.module, line 422
Provides Blogger services for BlogAPI

Code

function blogapi_blogger_delete_post($appid, $postid, $username, $password, $publish) {

  // Validate the user.
  blogapi_validate_user($username, $password);
  node_delete($postid);
  return TRUE;
}