mgd_copy_snippetdir

Name

mgd_copy_snippetdir -- Copy a snippetdir

Synopsis

int mgd_copy_snippetdir(int id, string path);

Description

Minimum version: Midgard 1.4 (Bifrost)

Copies the snippetdir record with id id to a new location under snippet path path.

Returns the id of the created copy if successfull. Returns false on failure.

Example

<?php
  mgd_copy_snippet(13,"somepath/somesub/somedeeper");
?>