function elements_process_placeholder in Elements 7
#process callback for #placeholder form element property.
Parameters
$element: An associative array containing the properties and children of the generic input element.
Return value
The processed element.
1 string reference to 'elements_process_placeholder'
- elements_element_info_alter in ./
elements.module - Implements hook_element_info_alter().
File
- ./
elements.module, line 185
Code
function elements_process_placeholder($element) {
if (isset($element['#placeholder']) && !isset($element['#attributes']['placeholder'])) {
$element['#attributes']['placeholder'] = $element['#placeholder'];
}
return $element;
}