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

#557056 by sign: Removed the fieldset around summary and body fields.

parent 61dd88e8
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
......@@ -14,9 +14,6 @@ function text_theme() {
'text_textarea' => array(
'arguments' => array('element' => NULL),
),
'text_textarea_with_summary' => array(
'arguments' => array('element' => NULL),
),
'text_textfield' => array(
'arguments' => array('element' => NULL),
),
......@@ -567,7 +564,7 @@ function text_elements() {
'#input' => TRUE,
'#columns' => array('value', 'format', 'summary'), '#delta' => 0,
'#process' => array('text_textarea_with_summary_process'),
'#theme_wrappers' => array('text_textarea_with_summary'),
'#theme_wrappers' => array('text_textarea'),
'#filter_value' => FILTER_FORMAT_DEFAULT,
),
);
......@@ -794,22 +791,3 @@ function theme_text_textfield($element) {
function theme_text_textarea($element) {
return $element['#children'];
}
function theme_text_textarea_with_summary($element) {
// If displaying both a textarea and a summary field, wrap them
// in a fieldset to make it clear they belong together.
$field_key = $element['#columns'][1];
if (!empty($element[$field_key]['#display'])) {
$fieldset = array(
'#title' => $element['#title'],
'#value' => $element['#children'],
'#attributes' => array('class' => array('text-textarea')),
'#id' => str_replace('_', '-', $element['#field_name']) . '-summary-wrapper',
);
return theme('fieldset', $fieldset);
}
else {
return $element['#children'];
}
}
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