Submitted by Jonathan Dale on Wed, 06/05/2013 - 9:16am

@Morten:

This would go within your theme template.php or module file and would need to be wrapped in a hook_form_comment_form_alter() function.

For example:

function THEMENAME_form_comment_form_alter(&$form, &$form_state) {
$form['comment_body'][$form['comment_body']['#language']][0]['#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.