You are here

function simplenews_confirm_multi_form in Simplenews 7.2

Same name and namespace in other branches
  1. 7 includes/simplenews.subscription.inc \simplenews_confirm_multi_form()

Generate the confirm subscription form.

See also

simplenews_confirm_add_form_submit()

1 string reference to 'simplenews_confirm_multi_form'
simplenews_confirm_combined in includes/simplenews.subscription.inc
Menu callback: confirm a combined confirmation request.

File

includes/simplenews.subscription.inc, line 666
(Un)subscription and (un)subscription confirmation

Code

function simplenews_confirm_multi_form($form, &$form_state, $subscriber) {
  $form = array();
  $form['question'] = array(
    '#markup' => '<p>' . t('Are you sure you want to confirm the following subscription changes for %user?', array(
      '%user' => simplenews_mask_mail($subscriber->mail),
    )) . "<p>\n",
  );
  $form['changes'] = array(
    '#theme' => 'item_list',
    '#items' => simplenews_confirmation_get_changes_list($subscriber),
  );
  $form['subscriber'] = array(
    '#type' => 'value',
    '#value' => $subscriber,
  );
  return confirm_form($form, t('Confirm subscription'), '', t('You can always change your subscriptions later.'), t('Confirm'), t('Cancel'));
}