function blogapi_blogger_delete_post in Drupal 6
Same name and namespace in other branches
- 4 modules/blogapi.module \blogapi_blogger_delete_post()
- 5 modules/blogapi/blogapi.module \blogapi_blogger_delete_post()
Blogging API callback. Removes the specified blog node.
1 string reference to 'blogapi_blogger_delete_post'
- blogapi_xmlrpc in modules/
blogapi/ blogapi.module - Implementation of hook_xmlrpc().
File
- modules/
blogapi/ blogapi.module, line 350 - 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($postid);
return TRUE;
}