-1

I am using poll module in my site. Everything is working fine. But the submit button(label) is "vote", I want to change it to "Submit". How can i change this? And this is a block.

1 Answer 1

2

You need to implement hook_form_alter() for altering the poll_view_voting form and change #value from Vote to Submit.

function mymodule_form_poll_view_voting_alter(&$form, &$form_state, $form_id) {
  $form['vote']['#value'] = t('Submit');
}
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.