mgd_update_page_element

(Midgard 1.4.2 'Bifrost')

mgd_update_page_element -- Update a page element record

Description

bool mgd_update_page_element (int id, string name, string value, bool inherit)

Minimum version: Midgard 1.2.5 (Mad King)

Updates the page element record with id id with provided information.

Returns TRUE if successful. Returns FALSE on failure.


<?php
 $id      = 123;
 $name    = "head-title";
 $value   = "<title>Another example<title>";
 $inherit = 0;
 mgd_update_page_element( $id, $name, $value, $inherit);
 $err = mgd_errno();
 if( $err ) {
   echo "Could not update page element.<br>";
   echo "reason: " . mgd_errstr( $err );
 } else {
   echo "updated page element.";
 }
?>