function fail2ban_form_comment_admin_overview_alter in Fail2ban Firewall Integration 6
Same name and namespace in other branches
- 7.2 fail2ban.module \fail2ban_form_comment_admin_overview_alter()
- 7 fail2ban.module \fail2ban_form_comment_admin_overview_alter()
Implements hook_form_FORMID_alter().
See also
fail2ban_comment_admin_overview_submit()
File
- ./
fail2ban.module, line 31
Code
function fail2ban_form_comment_admin_overview_alter(&$form, $form_state) {
if (user_access('submit addresses to fail2ban')) {
module_load_include('inc', 'fail2ban', 'fail2ban.admin');
// Add copies of the existing options, with the firewall options appended.
$form['options']['fail2ban'] = array(
'#type' => 'checkbox',
'#prefix' => '<br />',
'#title' => 'Firewall originating IP address',
);
$form['#submit'][] = 'fail2ban_comment_admin_overview_submit';
}
}