You are here

function nat_menu in Node Auto Term [NAT] 6.2

Same name and namespace in other branches
  1. 5 nat.module \nat_menu()
  2. 6 nat.module \nat_menu()
  3. 7.2 nat.module \nat_menu()
  4. 7 nat.module \nat_menu()

Implementation of hook_menu().

File

./nat.module, line 35
NAT - node auto term - is a helper module that automatically creates a term using the same title as a node.

Code

function nat_menu() {
  $items = array();
  $items['admin/settings/nat'] = array(
    'title' => 'NAT',
    'description' => 'Establish node - node relationships via the taxonomy module.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'nat_settings_form',
    ),
    'access arguments' => array(
      'administer NAT configuration',
    ),
    'file' => 'nat.admin.inc',
  );
  $items['admin/settings/nat/settings'] = array(
    'title' => 'Settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'nat_settings_form',
    ),
    'access arguments' => array(
      'administer NAT configuration',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'file' => 'nat.admin.inc',
  );
  $items['admin/settings/nat/sync'] = array(
    'title' => 'Sync',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'nat_sync_form',
    ),
    'access arguments' => array(
      'administer NAT configuration',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'nat.admin.inc',
  );
  return $items;
}