#195540 by hass: fix XHTML validity with disabled checkbox in locales form
parent
efbd1db550
commit
b82738fa3f
|
|
@ -71,7 +71,7 @@ function theme_locale_languages_overview_form($form) {
|
||||||
if (is_array($element) && element_child($key)) {
|
if (is_array($element) && element_child($key)) {
|
||||||
// Disable checkbox for the default language, because it cannot be disabled.
|
// Disable checkbox for the default language, because it cannot be disabled.
|
||||||
if ($key == $default->language) {
|
if ($key == $default->language) {
|
||||||
$form['enabled'][$key]['#attributes']['disabled'] = TRUE;
|
$form['enabled'][$key]['#attributes']['disabled'] = 'disabled';
|
||||||
}
|
}
|
||||||
$rows[] = array(
|
$rows[] = array(
|
||||||
array('data' => drupal_render($form['enabled'][$key]), 'align' => 'center'),
|
array('data' => drupal_render($form['enabled'][$key]), 'align' => 'center'),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue