summaryrefslogtreecommitdiff
path: root/src/forum_post_delete.php
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-04-30 21:20:09 +0000
committeruckelman <uckelman@nomic.net>2010-04-30 21:20:09 +0000
commit340fc57f4573f7b623edad830244f1f5096ab8ab (patch)
treeebd66df3ba981b6481401da74a85a97dc4f2a344 /src/forum_post_delete.php
parent32cfe42b6e8a9138d12299d003ba475ab244f043 (diff)
Added usage notes.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6796 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src/forum_post_delete.php')
-rw-r--r--src/forum_post_delete.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/forum_post_delete.php b/src/forum_post_delete.php
index f1fabde..177d08e 100644
--- a/src/forum_post_delete.php
+++ b/src/forum_post_delete.php
@@ -1,5 +1,11 @@
<?php
+#
+# Usage: In posting.php, following delete_post():
+#
+# require_once('/home/uckelman/site-src/bridge/src/forum_post_delete.php');
+#
+
try {
remove_post($post_id);
}
@@ -7,7 +13,6 @@ catch (Exception $e) {
trigger_error($e, E_USER_ERROR);
}
-# TODO: call this from handle_post_delete in posting.php
function remove_post($postId) {
require_once(__DIR__ . '/Bridge.php');