The label of the submit button for mailchimp_lists_user_subscribe_form() is "Subscribe" which depending on the situation can be inaccurate, for example in the case of a single newsletter that one wants to unsubscribe: untick the name of the newsletter and click "Subscribe" is not intuite.
Solution: either rename the label to something more generic like "Save", or change the label with jQuery based on the state of the checkbox. Note however that there might be situation where some are checked and some others aren't, so "Subscribe" still does not make sense. Maybe "Save" or "Save subscriptions" is better.
Comments
Comment #1
antipex CreditAttribution: antipex commentedGood idea - changed to "Save" in 740ed17.
Comment #2
BarwonHack CreditAttribution: BarwonHack commentedadd to your themes template.php file ...
function THEMENAME_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == "mailchimp_lists_user_subscribe_form_LIST_MACHINE_NAME") {
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Sign Uppppxx'),
);
}
}
Comment #4
mgiffordI think this is fixed & in the module now.
@smilne23 that's just not a good enough answer. Yes, absolutely you can hack it in. However, the standard in D7 is to fix accessibility issues like this and not make everyone go through and manually add the label.
EDIT: Frig.. Didn't read the start of that message well enough.. Arg, multitasking.. Sorry all.
Comment #5
BarwonHack CreditAttribution: BarwonHack commentedBlinks ... really?!
Comment #6
levelos CreditAttribution: levelos commentedI'm closing this. We will not be adding a configuration setting for the text on the submit button at this time. It can be changed through the Drupal core localization system, using form_alter, writing your own module, theme override, etc. Please do not reopen.
Comment #7
atiba CreditAttribution: atiba commentedThanks smilne23!
Post #2 works just perfectly.
I just want to thank you for that. :)