mgd_create_style

Name

mgd_create_style -- Create a style

Synopsis

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

Description

Minimum version: Midgard 1.0 (Land Rover)

Creates a new style reocrd with the provided parameters.

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

Example

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