function jquerymobile_pre_render_checkboxes in jQuery Mobile module 7.2
Same name and namespace in other branches
- 7 jquerymobile.module \jquerymobile_pre_render_checkboxes()
Prerender the checkboxes.
@todo: make flip switches work
1 string reference to 'jquerymobile_pre_render_checkboxes'
- jquerymobile_element_info_alter in ./
jquerymobile.module - Implements hook_element_info_alter().
File
- ./
jquerymobile.module, line 254
Code
function jquerymobile_pre_render_checkboxes($element) {
global $theme_key;
if (_jquerymobile_is_mobile_theme($theme_key)) {
$count = count($element['#options']);
if ($count != 1) {
foreach ($element['#options'] as $key => $choice) {
$element[$key]['#multiple'] = TRUE;
}
}
}
return $element;
}