mgd_update_page_element

Name

mgd_update_page_element -- Update a page element record

Synopsis

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

Description

Minimum version: Midgard 1.2.5 (Mad King)

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

Returns true if successfull. Returns false on failure.

Example

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