diff --git a/core/includes/theme.inc b/core/includes/theme.inc index f65e0f2..9570fd6 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -2434,10 +2434,14 @@ function template_preprocess_field_multiple_value_form(&$variables) { if ($variables['multiple']) { $table_id = drupal_html_id($element['#field_name'] . '_values'); $order_class = $element['#field_name'] . '-delta-order'; + $header_attributes = new Attribute(array('class' => array('label'))); + if (!empty($element['#required'])) { + $header_attributes['class'][] = 'form-required'; + } $header = array( array( 'data' => array( - '#prefix' => '

', + '#prefix' => '', 'title' => array( '#markup' => t($element['#title']), ), @@ -2448,9 +2452,6 @@ function template_preprocess_field_multiple_value_form(&$variables) { ), t('Order', array(), array('context' => 'Sort order')), ); - if (!empty($element['#required'])) { - $header[0]['data']['#prefix'] = '

'; - } $rows = array(); // Sort items according to '_weight' (needed when the form comes back after