mgd_get_element

(Midgard 1.4.2 'Bifrost')

mgd_get_element -- Retrieve information about an element

Description

object mgd_get_element (int id)

Minimum version: Midgard 1.0

Retrieves information about the element record with id id.

Returns an object describing the element record if successful. Returns FALSE on failure.


<?php
 $id = 123;
 $el = mgd_get_element($id);
 if(!$el){
   echo "Could not get element.";
 }else{
    echo $el->name;
 }
?>