You are here

function fail2ban_admin_settings in Fail2ban Firewall Integration 7.2

Same name and namespace in other branches
  1. 6 fail2ban.admin.inc \fail2ban_admin_settings()
  2. 7 fail2ban.admin.inc \fail2ban_admin_settings()

Return the settings form.

1 string reference to 'fail2ban_admin_settings'
fail2ban_menu in ./fail2ban.module

File

./fail2ban.admin.inc, line 9

Code

function fail2ban_admin_settings() {
  $form = array();
  $form['fail2ban_logstring'] = array(
    '#title' => 'Log String',
    '#type' => 'textfield',
    '#default_value' => variable_get('fail2ban_logstring', 'Submitting address [!address] to the firewall'),
    '#description' => t('Enter the log message that the fail2ban module should write when a comment is deleted or unpublished. Your fail2ban utility should be configured to look and act upon a message in this format. The originating IP address is inserted via the !address placeholder.'),
  );
  return system_settings_form($form);
}