Unclassified NewsBoard Code Reference

IPost.Remove function

Remove a post

function IPost.Remove ($id = 0, $auto_del_thread = true);

Parameters:

id  –  optional, default: 0
(int) post id to remove. 0 for currently loaded post
auto_del_thread  –  optional, default: true
(bool) also remove the thread if this was the last post in it

Return value:

(bool) success

Member of class: IPost

Implementation file: unb_lib/post.lib.php, line 656

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.