system_ip_blocking_form

Versions
7
system_ip_blocking_form($form, $form_state)

Define the form for blocking IP addresses.

See also

system_ip_blocking_form_validate()

@see system_ip_blocking_form_submit()

Related topics

Code

modules/system/system.admin.inc, line 1336

<?php
function system_ip_blocking_form($form, $form_state) {
  $form['ip'] = array(
    '#title' => t('IP address'),
    '#type' => 'textfield',
    '#size' => 64,
    '#maxlength' => 32,
    '#default_value' => arg(3),
    '#description' => t('Enter a valid IP address.'),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  $form['#submit'][] = 'system_ip_blocking_form_submit';
  $form['#validate'][] = 'system_ip_blocking_form_validate';
  return $form;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.