Open Source Content Management System

mgd_create_element

  1. Description

mgd_create_element -- Create an element record

(Note: this function is deprecated since Midgard 1.6.0. Corresponding OOP-method should be used, instead)

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. Note: The current user must be owner of the style style.

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

<(content)>";
     if(mgd_create_element( $style, $name, $value )){
       echo "Element created.";
     }else{
       echo "Creation of element failed.";
     }
    ?>
Designed by Nemein, hosted by Anykey