function simplenews_subscription_list_form_validate in Simplenews 7.2
Same name and namespace in other branches
- 5 simplenews.module \simplenews_subscription_list_form_validate()
- 6.2 includes/simplenews.admin.inc \simplenews_subscription_list_form_validate()
- 6 simplenews.admin.inc \simplenews_subscription_list_form_validate()
- 7 includes/simplenews.admin.inc \simplenews_subscription_list_form_validate()
@todo
1 string reference to 'simplenews_subscription_list_form_validate'
- simplenews_subscription_list_form in includes/
simplenews.admin.inc - Menu callback: subscription administration.
File
- includes/
simplenews.admin.inc, line 1140 - Newsletter admin, subscription admin, simplenews settings
Code
function simplenews_subscription_list_form_validate($form, &$form_state) {
if (isset($form_state['values']['operation'])) {
$snids = array_keys(array_filter($form_state['values']['subscribers']));
if (empty($snids)) {
form_set_error('', t('No items selected.'));
}
}
}