Submitted by Jonathan Dale on Mon, 06/03/2013 - 9:03am
@Oneng: You will likely want to use hook_form_comment_form_alter instead.
Something like the following should work:
function ahb_form_comment_form_alter(&$form, &$form_state) {
if (isset($form['name'])) {
$form['name']['#attributes']['placeholder'] = t('enter your name');
}
}
