mgd_create_page

(Midgard 1.4.2 'Bifrost')

mgd_create_page -- Create a page record

Description

int mgd_create_page (int up, string name, int style, string title, string content, int author, int auth, int active)

Minimum version: Midgard 1.0

Creates a page record with the provided parameters.

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


<?php
 $up      = 13;
 $name    = "demo";
 $style   = 17;
 $title   = "Page Create Demo";
 $content = '<?php phpinfo(); ?>';
 $author  = 13;
 $auth    = 0;
 $active  = 1;

 mgd_create_page( $up, $name, $style, $title, $content,
                  $author, $auth, $active);
?>