mgd_get_page_element

(Midgard 1.4.2 'Bifrost')

mgd_get_page_element -- Get a page-element record

Description

object mgd_get_page_element (int id)

Minimum version: Midgard 1.0

Gets information about the page element record with id id.

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


<?php
 $id = 123;
 $pe = mgd_get_page_element( $id );
 $err = mgd_errno();
 if( $err ) {
   echo "Could not get page element.<br>";
   echo "reason: " . mgd_errstr( $err );
 } else {
  echo $pe->value;
 }
?>