diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-02-26 16:55:18 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-02-26 16:55:18 +0000 |
commit | 19aaebcbe2fe4af1e9fbf47c6e498889bbd9f934 (patch) | |
tree | 2628d73156360bc60a3d1f3bdc18bc4e1b47285b /modules/comment | |
parent | abf19a337fcacb8f9eefda79a817c7d9c4c2458a (diff) | |
download | brdo-19aaebcbe2fe4af1e9fbf47c6e498889bbd9f934.tar.gz brdo-19aaebcbe2fe4af1e9fbf47c6e498889bbd9f934.tar.bz2 |
- Patch #721010 by jhodgdon: actions topic group needs more functions included and better doc header.
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/comment.module | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 0035b0a99..9758877c6 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -2360,8 +2360,6 @@ function vancode2int($c = '00') { /** * Implements hook_action_info(). - * - * @ingroup actions */ function comment_action_info() { return array( @@ -2396,12 +2394,13 @@ function comment_action_info() { } /** - * Action to publish a comment. + * Publishes a comment. * * @param $comment * An optional comment object. - * @param $context - * Keyed array. Must contain the id of the comment if $comment is not passed. + * @param array $context + * Array with components: + * - 'cid': Comment ID. Required if $comment is not given. * * @ingroup actions */ @@ -2422,12 +2421,13 @@ function comment_publish_action($comment, $context = array()) { } /** - * Action to unpublish a comment. + * Unpublishes a comment. * * @param $comment * An optional comment object. - * @param $context - * Keyed array. Must contain the id of the comment if $comment is not passed. + * @param array $context + * Array with components: + * - 'cid': Comment ID. Required if $comment is not given. * * @ingroup actions */ @@ -2448,12 +2448,14 @@ function comment_unpublish_action($comment, $context = array()) { } /** - * Action to unpublish a comment if it contains a certain string. + * Unpublishes a comment if it contains certain keywords. * * @param $comment - * A comment object. - * @param $context - * Keyed array. Must contain the id of the comment if $comment is not passed. + * Comment object to modify. + * @param array $context + * Array with components: + * - 'keywords': Keywords to look for. If the comment contains at least one + * of the keywords, it is unpublished. * * @ingroup actions * @see comment_unpublish_by_keyword_action_form() @@ -2498,7 +2500,9 @@ function comment_unpublish_by_keyword_action_submit($form, $form_state) { } /** - * Action to save a comment. + * Saves a comment. + * + * @ingroup actions */ function comment_save_action($comment) { comment_save($comment); |