mgd_create_page_element

Name

mgd_create_page_element -- Create a page element

Synopsis

int mgd_create_page_element(int page, string name, string value, bool inherit);

Description

Minimum version: Midgard 1.0 (Land Rover)

Creates a new page element with the provide parameters.

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

Example

<?php
 $page    = 17;
 $name    = "head-title";
 $value   = "<title>Just an example<title>";
 $inherit = 0;
 mgd_create_page_element( $page, $name, $value, $inherit);
 $err = mgd_errno();
 if( $err ) {
   echo "Could not create page element.<br>";
   echo "reason: " . mgd_errstr( $err );
 } else {
   echo "page element created.";
 }
?>