mgd_delete_topic_tree

(Midgard 1.4.2 'Bifrost')

mgd_delete_topic_tree -- Delete a topic tree

Description

bool mgd_delete_topic_tree (int id)

Minimum version: Midgard 1.1.1

Deletes the topic tree record with id id Only owners of the parent topic tree are allowed to remove a topic tree . Note that an owner of a topic tree may remove any of the subtopics of the topic but not the root topic he owns.

Returns TRUE if successful. Returns FALSE on failure.


<?php
  if(!mgd_delete_topic_tree(13)) {
    echo "failed to delete topic tree 13";
    echo "reason: " . mgd_errstr();
  }
?>