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


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');

Your Answer

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

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