I wanted to change the default value of submit button in comment form from "Save" to "Post". I wanted to do that using a module , not javascript. So I wrote the following code in my module.
function mymodule_form_comment_form_alter(&$form, &$form_state, $form_id){
$form['actions']['submit'] = array(
'#value' => t('Post Comments'),
);
}
But instead of changing the value of submit button, this module is making the submit button hidden. If I add return $form
, then the submit button displays but with the same default text "Save". Any suggestions please. Thank you.