mgd_update_snippet

(Midgard 1.4.2 'Bifrost')

mgd_update_snippet -- Update a snippet

Description

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

Minimum version: Midgard 1.4 (Bifrost)

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

Returns TRUE if successful. Returns FALSE on failure.


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