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/blogapi.module, line 350
<?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 