function taxonomy_tools_copier_menu in Taxonomy Tools 8
Same name and namespace in other branches
- 7 taxonomy_tools_copier/taxonomy_tools_copier.module \taxonomy_tools_copier_menu()
Implements hook_menu().
File
- taxonomy_tools_copier/
taxonomy_tools_copier.module, line 11 - Drupal hooks implementations and module specific functions.
Code
function taxonomy_tools_copier_menu() {
$items['admin/config/taxonomy-tools/copier'] = array(
'title' => 'Taxonomy Copier',
'description' => 'Configure Taxonomy Copier settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'taxonomy_tools_copier_admin_form',
),
'access arguments' => array(
'access administration pages',
),
'file' => 'taxonomy_tools_copier.admin.inc',
'file path' => drupal_get_path('module', 'taxonomy_tools_copier'),
);
$items['admin/structure/taxonomy/%taxonomy_vocabulary_machine_name/copy/%'] = array(
'title callback' => 'taxonomy_tools_copier_title_callback',
'title arguments' => array(
5,
),
'description' => 'Taxonomy copier term copying form.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'taxonomy_tools_copier_copy_form',
3,
5,
),
'file' => 'taxonomy_tools_copier.admin.inc',
'file path' => drupal_get_path('module', 'taxonomy_tools_copier'),
'access arguments' => array(
'use taxonomy copier',
),
);
$items['taxonomy-copier/%/nodes/%'] = array(
'title' => 'Term nodes',
'type' => MENU_CALLBACK,
'page callback' => 'taxonomy_tools_copier_nodes_ajax',
'page arguments' => array(
1,
3,
),
'file' => 'taxonomy_tools_copier.admin.inc',
'file path' => drupal_get_path('module', 'taxonomy_tools_copier'),
'access arguments' => array(
'use taxonomy copier',
),
);
$items['taxonomy/term/%taxonomy_term/copy'] = array(
'title' => 'Copy',
'description' => 'Taxonomy copier term copying form.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'taxonomy_tools_copier_copy_form',
NULL,
2,
),
'file' => 'taxonomy_tools_copier.admin.inc',
'file path' => drupal_get_path('module', 'taxonomy_tools_copier'),
'access arguments' => array(
'use taxonomy copier',
),
'type' => MENU_LOCAL_TASK,
'weight' => 49,
);
return $items;
}