You are here

function simplenews_send_newsletter_action_validate in Simplenews 6.2

Same name and namespace in other branches
  1. 6 simplenews_action/simplenews_action.module \simplenews_send_newsletter_action_validate()

Validate simplenews_send_newsletter_action form submissions.

File

simplenews_action/simplenews_action.module, line 167
Provide actions for simplenews.

Code

function simplenews_send_newsletter_action_validate($form, $form_state) {
  $form_values = $form_state['values'];

  // Validate the send newsletter form.
  if (empty($form_values['newsletter_issue'])) {
    form_set_error('newsletter_issue', t('Please select a newsletter issue.'));
  }
}