You are here

function no_autocomplete_menu in No Autocomplete 7

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

Implements hook_menu().

Add admin settings form.

File

./no_autocomplete.module, line 44
No_autocomplete.module.

Code

function no_autocomplete_menu() {
  $items['admin/config/people/no_autocomplete'] = array(
    'title' => 'No Autocomplete',
    'description' => 'Turn on autocomplete=off for key user forms',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'no_autocomplete_admin_settings_form',
    ),
    'access arguments' => array(
      'administer no_autocomplete',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'no_autocomplete.admin.inc',
  );
  return $items;
}