mgd_delete_element

(Midgard 1.4.2 'Bifrost')

mgd_delete_element -- Delete an element record

Description

bool mgd_delete_element (int id)

Minimum version: Midgard 1.0

Deletes the element record with id id.

Returns if successful. Returns FALSE on failure.


<?php
 $id = 123;
 if(mgd_delete_element($id)) {
   echo "Element $id deleted.";
 } else {
   echo "Could not delete element $id";
 }
?>