You are here

function simplenews_send_newsletter_action_submit in Simplenews 6

Same name and namespace in other branches
  1. 6.2 simplenews_action/simplenews_action.module \simplenews_send_newsletter_action_submit()

Process simplenews_send_newsletter_action form submissions.

File

simplenews_action/simplenews_action.module, line 154
simplenews_action.inc Provide actions for simplenews.

Code

function simplenews_send_newsletter_action_submit($form, $form_state) {
  $form_values = $form_state['values'];
  $params = array(
    'nid' => $form_values['newsletter_issue'],
    'title' => $form['newsletter_issue']['#options'][$form_values['newsletter_issue']],
    'resend' => $form_values['resend'],
  );
  return $params;
}