You are here

function no_autocomplete_admin_settings_form in No Autocomplete 7

Same name and namespace in other branches
  1. 6 no_autocomplete.module \no_autocomplete_admin_settings_form()

Form constructor for No autocomplete form.

Parameters

array $form: The form element.

array $form_state: The form state.

1 string reference to 'no_autocomplete_admin_settings_form'
no_autocomplete_menu in ./no_autocomplete.module
Implements hook_menu().

File

./no_autocomplete.admin.inc, line 16
Calls results to administration's pages for the No Autocomplete module.

Code

function no_autocomplete_admin_settings_form(array $form, array &$form_state) {
  $form['no_autocomplete_login_form'] = array(
    '#type' => 'checkbox',
    '#title' => t('Use "autocomplete=off" on user login form'),
    '#default_value' => variable_get('no_autocomplete_login_form'),
  );
  $form = system_settings_form($form);
  return $form;
}