Builds a form to test the placeholder attribute.
function form_test_placeholder_test($form, &$form_state) {
foreach (array(
'textfield',
'textarea',
'url',
'password',
'search',
'tel',
'email',
'number',
) as $type) {
$form[$type] = array(
'#type' => $type,
'#title' => $type,
'#placeholder' => 'placeholder-text',
);
}
return $form;
}