function simplenews_admin_issues_validate in Simplenews 7
Same name and namespace in other branches
- 7.2 includes/simplenews.admin.inc \simplenews_admin_issues_validate()
Form vaidate callback for the issue list operations.
1 string reference to 'simplenews_admin_issues_validate'
- simplenews_admin_issues in includes/
simplenews.admin.inc - Form builder: Builds a list of newsletters with operations.
File
- includes/
simplenews.admin.inc, line 218 - Newsletter admin, subscription admin, simplenews settings
Code
function simplenews_admin_issues_validate($form, &$form_state) {
if (isset($form_state['input']['operation'])) {
$nids = array_keys(array_filter($form_state['input']['issues']));
if (empty($nids)) {
form_set_error('', t('No items selected.'));
}
}
}