#938672 by Jeff Burnz: Stop thousands of red Xs from appearing on field UI error.

merge-requests/26/head
Angie Byron 2010-10-13 23:46:02 +00:00
parent e45e8b2abe
commit f6c1d1f16f
1 changed files with 1 additions and 1 deletions

View File

@ -1438,7 +1438,7 @@ function field_ui_field_settings_form($form, &$form_state, $instance) {
// If so, prevent changes to the field settings.
$has_data = field_has_data($field);
if ($has_data) {
$form['field']['#description'] = '<div class=error>' . t('There is data for this field in the database. The field settings can no longer be changed.' . '</div>') . $form['field']['#description'];
$form['field']['#description'] = '<div class="messages error">' . t('There is data for this field in the database. The field settings can no longer be changed.' . '</div>') . $form['field']['#description'];
}
// Build the non-configurable field values.