Submitted by Oneng on Mon, 06/03/2013 - 9:31am

thanks for reply)
work if:
$form['author']['name']['#attributes']['placeholder'] = t('YOUR NAME');
for mail, name... works fine, but for comment body no:
this for cooment body:
$form['comment_body']['#attributes']['placeholder'] = t('YOUR TEXT');

The content of this field is kept private and will not be shown publicly.

Plain text

  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.