function flood_unblock_settings_validate in Flood Unblock 7
The validation function.
File
- ./
flood_unblock.admin.inc, line 99 - Admin page callbacks for the flood_unblock module.
Code
function flood_unblock_settings_validate($form, &$form_state) {
$count = 0;
foreach ($form_state['values']['table'] as $value) {
if ($value != "0") {
$count++;
}
}
if ($count == 0) {
form_set_error('', t('Please make a selection.'));
}
}