Does anyone know how to rename the "save" comment button? I am trying to change it to "Post". I am using Drupal 7 and the Zen sub theme.
|
feedback
|
|
For Drupal 7, you need to create a custom module that implements
comment_form() uses the following code, to define the form buttons:
For Drupal 6, the code should be the following one:
In Drupal 6, comment_form() defines the form buttons using the following code:
| |||||||
feedback
|
|
Have you tried the String Overrides module? | |||||||
feedback
|
|
No need for custom module or using the string overrides module. In your settings.php, around line 416, uncomment and modify the following using your overrides:
| |||||
feedback
|
|
I prefer using
| ||||
|
feedback
|
|
For Drupal 6, the answers above suggesting using
While this appears to work, and you'll see a button with text 'Post', in fact you'll find two problems:
To actually make this work you'd need to hide the button and use a custom form submit handler. If I do that I'll return here and post working code. | |||
|
feedback
|