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.";
}
?>
|