Name
mgd_copy_event -- Copy an event
Synopsis
id mgd_copy_event
(int id, int event);
Description
Minimum version: Midgard 1.4 (Bifrost)
Copies the event with id id under the event
with id event.
If event equals 0, the copy will be a new
root event.
Returns the id of the created copy if successfull. Returns false on failure.
Example
<?php
if(! $newevent = mgd_copy_event(123)) {
echo "Could not create copy event.<br>\n";
echo "Reason: " . mgd_errstr(); . "<br>\n";
} else {
echo "Created copy of event 123.<br>\n";
echo "id is: " . $newevent->id ;
}
}
?>