function autoban_ban_form in Automatic IP ban (Autoban) 7
Ban IP's for one autoban rule.
See also
1 string reference to 'autoban_ban_form'
- autoban_test in ./
autoban.admin.inc - Menu callback. Test autoban rule page.
File
- ./
autoban.admin.inc, line 570 - Configuration for autoban module.
Code
function autoban_ban_form($form, &$form_state, $rule) {
$form = array();
$form['rule'] = array(
'#type' => 'value',
'#value' => $rule,
);
$form['actions'] = array(
'#type' => 'actions',
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Ban all IPs'),
'#suffix' => t('Ban all IPs from the list by inserting to banned IP tables.'),
);
return $form;
}