function autoban_ban_all_form in Automatic IP ban (Autoban) 7
Ban IP's for all autoban rule.
See also
1 string reference to 'autoban_ban_all_form'
- autoban_menu in ./
autoban.module - Implements hook_menu().
File
- ./
autoban.admin.inc, line 441 - Configuration for autoban module.
Code
function autoban_ban_all_form($form, &$form_state) {
$form['ban_all'] = array(
'#title' => t('Ban IP for all rules'),
);
$form['ban_all']['actions'] = array(
'#type' => 'actions',
);
$form['ban_all']['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Ban all IPs'),
'#suffix' => t('This action will automatically by cron. Your own IP @ip cannot be blocked.', array(
'@ip' => ip_address(),
)),
);
return $form;
}