diff options
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.admin.inc | 5 | ||||
-rw-r--r-- | modules/system/system.module | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index 43416c9c5..7ebac6c37 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -1104,10 +1104,10 @@ function system_ip_blocking() { ); } - $output .= theme('table', $header, $rows); - $output .= drupal_get_form('system_ip_blocking_form'); + $output .= theme('table', $header, $rows); + return $output; } @@ -1124,6 +1124,7 @@ function system_ip_blocking_form($form_state) { '#type' => 'textfield', '#size' => 64, '#maxlength' => 32, + '#default_value' => arg(3), '#description' => t('Enter a valid IP address.'), ); $form['submit'] = array( diff --git a/modules/system/system.module b/modules/system/system.module index 2cc438463..0293f65bd 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -495,6 +495,13 @@ function system_menu() { 'page callback' => 'system_ip_blocking', 'access arguments' => array('block IP addresses'), ); + $items['admin/settings/ip-blocking/%'] = array( + 'title' => 'IP address blocking', + 'description' => 'Manage blocked IP addresses.', + 'page callback' => 'system_ip_blocking', + 'access arguments' => array('block IP addresses'), + 'type' => MENU_CALLBACK, + ); $items['admin/settings/ip-blocking/delete/%blocked_ip'] = array( 'title' => 'Delete IP address', 'page callback' => 'drupal_get_form', |