Name
mgd_copy_article -- Copy an article
Synopsis
id mgd_copy_article
(int id, int [topic]);
Description
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 successfull. Returns false on failure.
Example
<?php
if(! $newarticle = mgd_copy_article(123)) {
echo "Could not create copy article.<br>\n";
echo "Reason: " . mgd_errstr(); . "<br>\n";
} else {
echo "Created copy of article 123.<br>\n";
echo "id is: " . $newarticle->id ;
}
}
?>