#195540 by hass: fix XHTML validity with disabled checkbox in locales form

6.x
Gábor Hojtsy 2007-11-26 23:33:03 +00:00
parent efbd1db550
commit b82738fa3f
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ function theme_locale_languages_overview_form($form) {
if (is_array($element) && element_child($key)) {
// Disable checkbox for the default language, because it cannot be disabled.
if ($key == $default->language) {
$form['enabled'][$key]['#attributes']['disabled'] = TRUE;
$form['enabled'][$key]['#attributes']['disabled'] = 'disabled';
}
$rows[] = array(
array('data' => drupal_render($form['enabled'][$key]), 'align' => 'center'),