You are here

function focus_menu in Autofocus 6

Same name and namespace in other branches
  1. 5 focus.module \focus_menu()
  2. 7 focus.module \focus_menu()

Implementation of hook_menu().

File

./focus.module, line 42
Simple module that sets focus on the first field in a form.

Code

function focus_menu() {
  $items['admin/settings/focus'] = array(
    'title' => 'Form field focus',
    'description' => 'Set the input fields.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'focus_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}