You are here

function simplenews_subscription_list_form_validate in Simplenews 5

Same name and namespace in other branches
  1. 6.2 includes/simplenews.admin.inc \simplenews_subscription_list_form_validate()
  2. 6 simplenews.admin.inc \simplenews_subscription_list_form_validate()
  3. 7.2 includes/simplenews.admin.inc \simplenews_subscription_list_form_validate()
  4. 7 includes/simplenews.admin.inc \simplenews_subscription_list_form_validate()

File

./simplenews.module, line 1981

Code

function simplenews_subscription_list_form_validate($form_id, $form_values) {
  if (isset($form_values['operation'])) {
    $snids = array_filter($form_values['snids']);
    if (empty($snids)) {
      form_set_error('', t('No items selected.'));
    }
  }
}