I thought it might be a nice feature to optionally be able to automatically use the label (#title property of the form element) as the placeholder. Attached patch adds a configuration form where you can choose to:

  • Automatically use the label as a placeholder
  • Optionally include/exclude administration page forms for above

Elements that have an explicit #placeholder already will be skipped.

Thanks!
drclaw

CommentFileSizeAuthor
placeholder-use_title-0.patch5.23 KBdrclaw
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chrisck’s picture

I believe the Form Placeholder module already does this: https://www.drupal.org/project/form_placeholder

drclaw’s picture

Status: Needs review » Closed (won't fix)

Well how bout that. I'll just close this one... and never speak of it again. =)