system_ip_blocking($default_ip = '')Menu callback. Display blocked IP addresses.
$default_ip Optional IP address to be passed on to drupal_get_form() for use as the default value of the IP address form field.
modules/system/system.admin.inc, line 1400
<?php
function system_ip_blocking($default_ip = '') {
$output = '';
$rows = array();
$header = array(t('IP address'), t('Operations'));
$result = db_query('SELECT * FROM {blocked_ips}');
foreach ($result as $ip) {
$rows[] = array(
$ip->ip,
l(t('delete'), "admin/config/people/ip-blocking/delete/$ip->iid"),
);
}
$build['system_ip_blocking_form'] = drupal_get_form('system_ip_blocking_form', $default_ip);
$build['system_ip_blocking_table'] = array(
'#theme' => 'table',
'#header' => $header,
'#rows' => $rows,
);
return $build;
}
?>