You are here

function mailchimp_unsubscribe_form in Mailchimp 5

Same name and namespace in other branches
  1. 5.2 mailchimp.module \mailchimp_unsubscribe_form()
  2. 6.2 mailchimp.module \mailchimp_unsubscribe_form()
  3. 6 mailchimp.module \mailchimp_unsubscribe_form()
  4. 7 mailchimp.module \mailchimp_unsubscribe_form()
1 string reference to 'mailchimp_unsubscribe_form'
mailchimp_menu in ./mailchimp.module
Implementation of hook_menu.

File

./mailchimp.module, line 521

Code

function mailchimp_unsubscribe_form($form_values = array()) {
  $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;
}