diff options
author | uckelman <uckelman@nomic.net> | 2010-04-30 21:20:09 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-04-30 21:20:09 +0000 |
commit | 340fc57f4573f7b623edad830244f1f5096ab8ab (patch) | |
tree | ebd66df3ba981b6481401da74a85a97dc4f2a344 | |
parent | 32cfe42b6e8a9138d12299d003ba475ab244f043 (diff) |
Added usage notes.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6796 67b53d14-2c14-4ace-a08f-0dab2b34000c
-rw-r--r-- | src/forum_post_delete.php | 7 | ||||
-rw-r--r-- | src/forum_post_send.php | 6 |
2 files changed, 12 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'); diff --git a/src/forum_post_send.php b/src/forum_post_send.php index cd103e7..e7c573b 100644 --- a/src/forum_post_send.php +++ b/src/forum_post_send.php @@ -1,5 +1,11 @@ <?php +# +# Usage: In posting.php, following submit_post(): +# +# require_once('/home/uckelman/site-src/bridge/src/forum_post_send.php'); +# + try { send_post_to_lists($config, $user, $mode, $data, $post_data); } |