function better_comments_validate in Better Comments 7
Same name and namespace in other branches
- 7.2 better_comments.module \better_comments_validate()
Validate the comment on submit.
2 string references to 'better_comments_validate'
- better_comments_form_comment_form_alter in ./
better_comments.module - Implements hook_form_comments_form_alter().
- better_comments_reply in ./
better_comments.module - Reply the comment.
File
- ./
better_comments.module, line 327 - Better Comments provides option to configure the comment system.
Code
function better_comments_validate($form, &$form_state) {
if (empty($form_state['values']['comment_body'][LANGUAGE_NONE]['0']['value'])) {
form_set_error('comment_body', t('The comment body cannot be empty.'));
}
}