mgd_copy_style

(Midgard 1.4.2 'Bifrost')

mgd_copy_style -- Copy a style

Description

int mgd_copy_style (int id, newparent id)

Minimum version: Midgard 1.4 (Bifrost)

Copies the style record with id id and sets the parent style to newparent, which may be 0.

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


<?php
  $newstyle = mgd_copy_style(1);
?>