mgd_create_snippet

Name

mgd_create_snippet -- Create a snippet

Synopsis

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

Description

Minimum version: Midgard 1.4 (Bifrost)

Creates a new snippet record with the provided parameters.

Returns the id of the created record if successfull. Returns false on failure.

Example

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