function scs_node_selection_validate in Simplenews Content Selection 6.2
Same name and namespace in other branches
- 7 scs.module \scs_node_selection_validate()
File
- ./
scs.pages.inc, line 129
Code
function scs_node_selection_validate($form, &$form_state) {
if ($form_state['values']['op'] != t('Filter')) {
if ($form_state['values']['newsletter_title'] == '' && $form_state['values']['step'] == 1) {
form_set_error('newsletter_title', t('This field is required.'));
}
}
}