You are here

function mailchimp_unsubscribe_form in Mailchimp 6.2

Same name and namespace in other branches
  1. 5.2 mailchimp.module \mailchimp_unsubscribe_form()
  2. 5 mailchimp.module \mailchimp_unsubscribe_form()
  3. 6 mailchimp.module \mailchimp_unsubscribe_form()
  4. 7 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
Implementation of hook_menu.

File

./mailchimp.module, line 783
Mailchimp module.

Code

function mailchimp_unsubscribe_form($form_values = array()) {
  $form = array();
  $form['intro'] = array(
    '#type' => 'markup',
    '#value' => t(variable_get('mailchimp_unsubscribe_page_description', 'Use this form to unsubscribe from all of our newsletters.')),
  );
  $form['EMAIL'] = array(
    '#type' => 'textfield',
    '#title' => t('Email Address'),
    '#required' => TRUE,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Unsubscribe'),
  );
  return $form;
}