mgd_delete_page_element

(Midgard 1.4.2 'Bifrost')

mgd_delete_page_element -- Delete a page element record

Description

bool mgd_delete_page_element (int id)

Minimum version: Midgard 1.0

Deletes the page element record with id id.

Returns TRUE if successful. Returns FALSE on failure.


<php
 $id = 123;
 mgd_delete_page_element( $id );
 $err = mgd_errno();
 if( $err ) {
   echo "Could not delete page element.<br>";
   echo "reason: " . mgd_errstr( $err );
 } else {
   echo "page element deleted.";
 }
?>