mgd_move_reply

Name

mgd_move_reply -- Move a reply article to a different parent article

Synopsis

int mgd_move_reply(int id, int target_article);

Description

Minimum version: Midgard 1.4 (Bifrost)

Moves n reply under article specified in the target_article.

Returns zero if successfull, non-zero on failure.

Example

<?php
 $id     = 123;
 $target = 17;
 if(!mgd_move_reply( $id, $target )) {
   echo "failed to move reply.<br>\n";
   echo "reason: " . mgd_errstr();
 } else {
   echo "moved reply $id under article $target.<br>\n";
 }
?>