Comment form no longer works when changing #value of submit button

pcave - December 4, 2008 - 02:54

This is truly odd. Changing the #value of the default comment form's submit button prevents the form from submitting correctly. I'm making the change via themeing like so:

$form['submit']['#value'] = t('Some value other then save');

Anyone else ever experience something like this?

...

mooffie - December 4, 2008 - 12:24

I'm making the change via themeing

See "Why changing button labels through theming is bad".

Thanks

pcave - December 4, 2008 - 15:48

I made the change in hook_form_alter and now everything works great.

 
 

Drupal is a registered trademark of Dries Buytaert.