Prepares a #type 'range' render element for theme_input().
array $element: An associative array containing the properties of the element. Properties used: #title, #value, #description, #min, #max, #attributes, #step.
array The $element with prepared variables ready for theme_input().
function form_pre_render_range($element) {
$element['#attributes']['type'] = 'range';
element_set_attributes($element, array(
'id',
'name',
'value',
'step',
'min',
'max',
));
_form_set_attributes($element, array(
'form-range',
));
return $element;
}