You are here

function no_autocomplete_admin_settings_form in No Autocomplete 6

Same name and namespace in other branches
  1. 7 no_autocomplete.admin.inc \no_autocomplete_admin_settings_form()

Form to set our options.

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

File

./no_autocomplete.module, line 70
no_autocomplete.module

Code

function no_autocomplete_admin_settings_form() {
  $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', FALSE),
  );
  $form['no_autocomplete_profile_form'] = array(
    '#type' => 'checkbox',
    '#title' => t('Use "autocomplete=off" on user profile edit form'),
    '#default_value' => variable_get('no_autocomplete_profile_form', FALSE),
  );
  $form = system_settings_form($form);
  return $form;
}