Name
mgd_create_element -- Create an element record
Synopsis
int mgd_create_element
(int style, string name, string value);
Description
Minimum version: Midgard 1.0 (Land Rover)
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 successfull.
Returns false on failure.
Example
<?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.";
}
?>