Skip to content
Snippets Groups Projects
Commit 6260946b authored by Angie Byron's avatar Angie Byron
Browse files

#538164 follow-up by sun: Make comment body a required field.

parent 494ba2f4
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -298,6 +298,7 @@ function _comment_body_field_instance_create($info) {
'object_type' => 'comment',
'bundle' => 'comment_node_' . $info->type,
'settings' => array('text_processing' => 1),
'required' => TRUE,
// Hides field label by default.
'display' => array(
'full' => array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment