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