mgd_create_element

(Midgard 1.4.2 'Bifrost')

mgd_create_element -- Create an element record

Description

int mgd_create_element (int style, string name, string value)

Minimum version: Midgard 1.0

Creates a new element record within the style with id style, with name name and content value.

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


<?php
 $style = 13;
 $name  = "ROOT";
 $value = "<HTML><BODY><(content)></BODY></HTML>";
 if(mgd_create_element( $style, $name, $value )){
   echo "Element created.";
 }else{
   echo "Creation of element failed.";
 }
?>