mgd_update_style

(Midgard 1.4.2 'Bifrost')

mgd_update_style -- Update a style record

Description

bool mgd_update_style (int id, string name, int owner)

Minimum version: Midgard 1.0

Updates the style record with id id with the provided parameters.

Returns TRUE if successful. Returns FALSE on failure.


<?php
 $id    = 123;
 $name  = "EvenGreaterStyle";
 $owner = 13;
 if(mgd_update_style($id)) {
   echo "Style updated.";
 } else {
   echo "failed to update style.";
 }
?>