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