mgd_list_snippets

(Midgard 1.4.2 'Bifrost')

mgd_list_snippets -- List snippets

Description

object mgd_list_snippets (int id)

Minimum version: Midgard 1.4 (Bifrost)

Lists the snippets that reside in the snippetdir with id id

Returns an object traversable by calling fetch() if successful. Returns FALSE on failure.


<?php
  $list = mgd_list_snippets(7);
  while($list->fetch()) {
    echo $list->name . "<br>\n";
  }
?>