function nat_menu in Node Auto Term [NAT] 7.2
Same name and namespace in other branches
- 5 nat.module \nat_menu()
- 6.2 nat.module \nat_menu()
- 6 nat.module \nat_menu()
- 7 nat.module \nat_menu()
Implements hook_menu().
File
- ./
nat.module, line 45 - 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/structure/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/structure/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/structure/nat/fields'] = array(
'title' => 'Fields',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nat_fields_form',
),
'access arguments' => array(
'administer NAT configuration',
),
'type' => MENU_LOCAL_TASK,
'file' => 'nat.admin.inc',
'weight' => 2,
);
$items['admin/structure/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',
'weight' => 3,
);
return $items;
}