You are here

function fail2ban_form_comment_admin_overview_alter in Fail2ban Firewall Integration 7.2

Same name and namespace in other branches
  1. 6 fail2ban.module \fail2ban_form_comment_admin_overview_alter()
  2. 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 40

Code

function fail2ban_form_comment_admin_overview_alter(&$form, $form_state) {
  if (user_access('submit addresses to fail2ban')) {
    $form['options']['fail2ban'] = array(
      '#type' => 'checkbox',
      '#prefix' => '<br />',
      '#title' => 'Firewall originating IP address',
    );
    $form['#submit'][] = 'fail2ban_comment_admin_overview_submit';
  }
}