mgd_get_snippet

(Midgard 1.4.2 'Bifrost')

mgd_get_snippet -- Get a snippet

Description

object mgd_get_snippet (int id)

Minimum version: Midgard 1.4 (Bifrost)

Gets information about the snippet record with id id.

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


<?php
  $snippet = mgd_get_snippet(17);
  echo $snippet->name;
?>