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.";
}
?>
|