From 2f3955503e45eab5bbe6e6bafd99fed9803ade2a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 7 Jul 2009 13:53:25 +0000 Subject: - Patch #512492 by DamZ: removed hook_validate, a relic of old times. Form API FTW! --- modules/comment/comment.api.php | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'modules/comment/comment.api.php') diff --git a/modules/comment/comment.api.php b/modules/comment/comment.api.php index 2f1624fb5..92f247a86 100644 --- a/modules/comment/comment.api.php +++ b/modules/comment/comment.api.php @@ -22,23 +22,6 @@ function hook_comment_insert($comment) { search_touch_node($comment->nid); } -/** - * The user has just finished editing the comment and is trying to - * preview or submit it. This hook can be used to check or - * even modify the comment. Errors should be set with form_set_error(). - * - * @param $form_values - * Passes in an array of form values submitted by the user. - * @return - * Nothing. - */ -function hook_comment_validate(&$form_values) { - // if the subject is the same as the comment. - if ($form_values['subject'] == $form_values['comment']) { - form_set_error('comment', t('you should write more text than in the subject')); - } -} - /** * The comment is being updated. * -- cgit v1.2.3