function autoban_ban_form_submit in Automatic IP ban (Autoban) 7
Form submission for autoban_ban_form().
File
- ./
autoban.admin.inc, line 588 - Configuration for autoban module.
Code
function autoban_ban_form_submit($form, &$form_state) {
$rule = $form_state['values']['rule'];
if (!empty($rule)) {
$count = autoban_ban($rule);
drupal_set_message(t('IP ban for the rule has finished. Total IP insertion: @count.', array(
'@count' => $count,
)));
}
}