mgd_create_style

(Midgard 1.4.2 'Bifrost')

mgd_create_style -- Create a style

Description

int mgd_create_style (int up, string name, int owner)

Minimum version: Midgard 1.0

Creates a new style reocrd with the provided parameters.

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


<?php
 $up    = 17;
 $name  = "GreatStyle";
 $owner = 13;
 if(mgd_create_style($up)) {
   echo "Style '$name' created.";
 } else {
   echo "Could not create style.";
 }
?>