mgd_get_style

(Midgard 1.4.2 'Bifrost')

mgd_get_style -- Get a style

Description

object mgd_get_style (int id)

Minimum version: Midgard 1.0

Gets information about the style record with id id.

Returns an object describing the record if successful. Returns FALSE on failure.


<?php
 $id = 123;
 $style = mgd_get_style( $id );
 if(! $style ) {
   echo "Could not get style $id.";
 } else {
   echo $style->id . ": name=" . $style->name .
        ", up=" . $style->up . "<br>\n";
 }
?>