function autoban_import_form in Automatic IP ban (Autoban) 7
Import autoban rules.
See also
import_form_submit()
1 string reference to 'autoban_import_form'
- autoban_menu in ./
autoban.module - Implements hook_menu().
File
- ./
autoban.admin.inc, line 765 - Configuration for autoban module.
Code
function autoban_import_form($form, &$form_state) {
$form = array();
$form['import'] = array(
'#title' => t('Import'),
'#type' => 'textarea',
'#rows' => 10,
'#description' => t('Copy the content of the text area from export page.'),
);
$form['clear_before'] = array(
'#title' => t('Clear before insertion'),
'#type' => 'checkbox',
'#default_value' => FALSE,
);
$form['actions'] = array(
'#type' => 'actions',
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Import'),
);
return $form;
}