Contents |
Updates existing post to the database.
<?php updatePost( ) ?>
none - instead of passing parameters, the $h->post object should have its properties populated
$h->post->author $h->post->status $h->post->type $h->post->category $h->post->tags $h->post->title $h->post->origUrl $h->post->domain $h->post->url $h->post->content $h->post->subscribe
<?php
$h->post->id= 5;
$h->post->title = "title";
$h->post->content = "content";
$h->post->type ="news";
$h->updatePost();
?>
updatePost() is located in content/hotaru.php which calls the post.php file from the LIBS folder.