mgd_delete_preference

(Midgard 1.4.2 'Bifrost')

mgd_delete_preference -- Delete a preference record

Description

bool mgd_delete_preference (int preference)

Minimum version: Midgard 1.4 (Bifrost)

Deletes the preference record with id preference.

Returns TRUE if successful. Returns FALSE on failure.


<?php
 $pref = 13;
 mgd_delete_preference( $pref );
 if( $err = mgd_errno() ) {
   echo "Failed to delete preference.<br>";
   echo "reason: " . mgd_errstr( $err );
 } else {
   echo "Deleted preference.";
 }
?>