Name
mgd_update_article_replyto -- Link one article to another
Synopsis
bool mgd_update_replyto
(int id, int replyto);
Description
Minimum version: Midgard 1.2.6 (Mad King)
Links one article to another by setting the
up field of the article
with id id to be
replyto.
Reply articles can be accessed with functions
like mgd_list_reply_articles. Setting
the replyto field to 0 clears the up
field. Only owners of an article are allowed to modify the
up field.
Returns true if successfull. Returns false on failure.
Example
<?php
$article = 123;
$replyto = 17;
$update = mgd_update_replyto( $article, $replyto );
if( ! $update ) {
echo "Update of replyto field failed.<br>\n";
echo "reason: " . mgd_errstr();
} else {
echo "Updated replyto field for article $article to be $replyto.";
}
?>