mgd_delete_topic_tree

Name

mgd_delete_topic_tree -- Delete a topic tree

Synopsis

bool mgd_delete_topic_tree(int id);

Description

Minimum version: Midgard 1.1.1 (Iron River)

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 successfull. Returns false on failure.

Example

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