You are here

function focus_menu in Autofocus 5

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

Implementation of hook_menu(). Settings link.

File

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

Code

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