mgd_move_article

(Midgard 1.4.2 'Bifrost')

mgd_move_article -- Move an article to different topic

Description

int mgd_move_article (int id, int target_topic)

Minimum version: Midgard 1.4 (Bifrost)

Moves an article under topic specified in the target_topic.

Returns zero if successful, non-zero on failure.


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