Open Source Content Management Framework

mgd_move_article

  1. Description

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.
\n"; echo "reason: " . mgd_errstr(); } else { echo "moved article $id under topic $target.
\n"; } ?>
Designed by Nemein, hosted by Kafit