mgd_create_snippet

(Midgard 1.4.2 'Bifrost')

mgd_create_snippet -- Create a snippet

Description

int mgd_create_snippet (int snippetdir, string name, string code, string doc, string author)

Minimum version: Midgard 1.4 (Bifrost)

Creates a new snippet record with the provided parameters.

Returns the id of the created record if successful. Returns FALSE on failure.


<?php
  mgd_create_snippet(17,"snippet01","<?php phpinfo() ?>","phpinfo","John Doe");
?>