function mailchimp_unsubscribe_form in Mailchimp 7
Same name and namespace in other branches
- 5.2 mailchimp.module \mailchimp_unsubscribe_form()
- 5 mailchimp.module \mailchimp_unsubscribe_form()
- 6.2 mailchimp.module \mailchimp_unsubscribe_form()
- 6 mailchimp.module \mailchimp_unsubscribe_form()
MailChimp unsubscribe form
Parameters
<type> $form_values:
Return value
<type>
1 string reference to 'mailchimp_unsubscribe_form'
- mailchimp_menu in ./
mailchimp.module - Implements hook_menu().
File
- ./
mailchimp.module, line 694 - Mailchimp module.
Code
function mailchimp_unsubscribe_form($form, $form_state) {
$form = array();
$form['intro'] = array(
'#type' => 'markup',
'#value' => t('Use this form to unsubscribe from all of our newsletters.'),
);
$form['EMAIL'] = array(
'#type' => 'textfield',
'#title' => t('Email Address'),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Unsubscribe'),
);
return $form;
}