diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-01 20:39:20 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-01 20:39:20 +0000 |
commit | e9ca98b69d45b935fe4963a345cba92a87164ddb (patch) | |
tree | 44649b4db3ce1c4c8919255fb55f459c0f44c673 /modules/comment/comment.api.php | |
parent | d9ab38b2d02037e0af3916b1d99120389e9aadd9 (diff) | |
download | brdo-e9ca98b69d45b935fe4963a345cba92a87164ddb.tar.gz brdo-e9ca98b69d45b935fe4963a345cba92a87164ddb.tar.bz2 |
- Patch #504678 by catch: use objects instead of arrays.
Diffstat (limited to 'modules/comment/comment.api.php')
-rw-r--r-- | modules/comment/comment.api.php | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/modules/comment/comment.api.php b/modules/comment/comment.api.php index deaaa7067..2f1624fb5 100644 --- a/modules/comment/comment.api.php +++ b/modules/comment/comment.api.php @@ -14,14 +14,12 @@ /** * The comment is being inserted. * - * @param $form_values - * Passes in an array of form values submitted by the user. - * @return - * Nothing. + * @param $comment + * The comment object. */ -function hook_comment_insert($form_values) { +function hook_comment_insert($comment) { // Reindex the node when comments are added. - search_touch_node($form_values['nid']); + search_touch_node($comment->nid); } /** @@ -44,14 +42,12 @@ function hook_comment_validate(&$form_values) { /** * The comment is being updated. * - * @param $form_values - * Passes in an array of form values submitted by the user. - * @return - * Nothing. + * @param $comment + * The comment object. */ -function hook_comment_update($form_values) { +function hook_comment_update($comment) { // Reindex the node when comments are updated. - search_touch_node($form_values['nid']); + search_touch_node($comment->nid); } /** |