#58586, code simplification, patch by chx
parent
b9d3b47ec6
commit
062412e1a4
|
@ -832,7 +832,7 @@ function theme_checkbox($element) {
|
|||
$checkbox .= 'name="'. $element['#name'] .'" ';
|
||||
$checkbox .= 'id="'. $element['#id'].'" ' ;
|
||||
$checkbox .= 'value="'. $element['#return_value'] .'" ';
|
||||
$checkbox .= ($element['#value'] || (string)$element['#return_value'] == (string)$element['#value']) ? ' checked="checked" ' : ' ';
|
||||
$checkbox .= $element['#value'] ? ' checked="checked" ' : ' ';
|
||||
$checkbox .= drupal_attributes($element['#attributes']) . ' />';
|
||||
|
||||
if (!is_null($element['#title'])) {
|
||||
|
|
Loading…
Reference in New Issue