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