mgd_delete_topic

(Midgard 1.4.2 'Bifrost')

mgd_delete_topic -- Delete a topic

Description

bool mgd_delete_topic (int id)

Minimum version: Midgard 1.1.1

Deletes the topic record with id id Only owners of the parent topic are allowed to remove a topic. Note that an owner of a topic 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(13)) {
    echo "failed to delete topic 13";
    echo "reason: " . mgd_errstr();
  }
?>