mgd_get_element_by_name

(Midgard 1.4.2 'Bifrost')

mgd_get_element_by_name -- Retrieve information about an element by its name

Description

object mgd_get_element_by_name (int style, string name)

Minimum version: Midgard 1.4 (Bifrost)

Retrieves information about the element record with name name in style style.

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


<?php
 $style = 3;
 $name  = "ROOT";
 $element = mgd_get_element_by_name($style,$name);
 echo $element->name;
?>