function scs_node_selection_validate in Simplenews Content Selection 7
Same name and namespace in other branches
- 6.2 scs.pages.inc \scs_node_selection_validate()
File
- ./
scs.module, line 351 - Select Drupal content to create a newsletter
Code
function scs_node_selection_validate($form, &$form_state) {
if ($form_state['values']['op'] == t('Sort nodes')) {
$nodes = array_filter($form_state['values']['nodes']);
if (empty($nodes) && $form_state['values']['step'] == 1) {
form_set_error('nodes', t('You need to select at least one node.'));
}
}
}