Open Source Content Management Framework

mgd_copy_article

  1. Description

mgd_copy_article -- Copy an article

Description

`id **mgd_copy_article** (int id, int topic)`

Minimum version: Midgard 1.4 (Bifrost)

Copies the article with id id. If the optional parameter topic is given, the copy will reside under that topic.

Returns the id of the created copy if successful. Returns FALSE on failure.

<?php
       if(! $newarticle = mgd_copy_article(123)) {
        echo "Could not create copy article.
\n"; echo "Reason: " . mgd_errstr(); . "
\n"; } else { echo "Created copy of article 123.
\n"; echo "id is: " . $newarticle->id ; } } ?>
Designed by Nemein, hosted by Kafit