You are here

function autofill_menu in Autofill 6

Implements hook_menu().

File

./autofill.module, line 54
Main module file for the autofill module for Nojoshmo

Code

function autofill_menu() {
  $items = array();
  $path = drupal_get_path('module', 'autofill');
  $items[$path . '/js/autofill.js'] = array(
    'title' => 'Autofill JS',
    'description' => 'Add id and values to Autofill.',
    'page callback' => 'autofill_js',
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      TRUE,
    ),
  );
  $items['admin/settings/autofill'] = array(
    'title' => 'Autofill',
    'description' => 'Configure Autofill.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'autofill_form',
    ),
    'access arguments' => array(
      'administer autofill',
    ),
    'file' => 'autofill.admin.inc',
  );
  return $items;
}