mgd_update_snippet

Name

mgd_update_snippet -- Update a snippet

Synopsis

bool mgd_update_snippet(int id, string name, string code, string doc, string [author]);

Description

Minimum version: Midgard 1.4 (Bifrost)

Updates the snippet record with id id with the provide parameters.

Returns true if successfull. Returns false on failure.

Example

<?php
  mgd_update_snippet(13,"phpinfo","<?php phpinfo(); ?>","phpinfo");
?>