On this page
function system_ip_blocking_form
system_ip_blocking_form($form, $form_state, $default_ip)
Define the form for blocking IP addresses.
See also
system_ip_blocking_form_validate()
system_ip_blocking_form_submit()
Related topics
File
- modules/system/system.admin.inc, line 1424
- Admin page callbacks for the system module.
Code
function system_ip_blocking_form($form, $form_state, $default_ip) {
$form['ip'] = array(
'#title' => t('IP address'),
'#type' => 'textfield',
'#size' => 48,
'#maxlength' => 40,
'#default_value' => $default_ip,
'#description' => t('Enter a valid IP address.'),
);
$form['actions'] = array('#type' => 'actions');
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Add'),
);
$form['#submit'][] = 'system_ip_blocking_form_submit';
$form['#validate'][] = 'system_ip_blocking_form_validate';
return $form;
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.admin.inc/function/system_ip_blocking_form/7.x