system_ip_blocking_form

Versions
mediamosa-21
system_ip_blocking_form($form, $form_state, $default_ip)

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 1430

<?php
function system_ip_blocking_form($form, $form_state, $default_ip) {
  $form['ip'] = array(
    '#title' => t('IP address'),
    '#type' => 'textfield',
    '#size' => 64,
    '#maxlength' => 32,
    '#default_value' => $default_ip,
    '#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;
}
?>