Is there a way to make the summary field required by default in the node form?
3 Answers
It might be easier to create a new field for the summary and just manage it that way, you will then have to remove the summary option from the body field. Otherwise I think you will have to write some code and use hook_form_alter.
in a custom module, hook into the the form alter hook
MYMODULE_form_FORM_ID_alter(&$form, &$form_state, $form_id) {
$form['body'][LANGUAGE_NONE][0]['summary']['#required'] = TRUE;
}
or
MYMODULE_form_alter(&$form, &$form_state, $form_id) {
if ($form_id = 'MY_FORM_ID') {
$form['body'][LANGUAGE_NONE][0]['summary']['#required'] = TRUE;
}
}
Go to admin/structure/types/manage/your_content_type_name/fields; there, you have the option to make this field required.