function term_merge_menu in Term Merge 7
Same name and namespace in other branches
- 5 term_merge.module \term_merge_menu()
- 6 term_merge.module \term_merge_menu()
Implements hook_menu().
File
- ./
term_merge.module, line 20 - Provide functionality for merging taxonomy terms one into another.
Code
function term_merge_menu() {
$items = array();
$items['admin/structure/taxonomy/%taxonomy_vocabulary_machine_name/merge'] = array(
'title' => 'Merge terms',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'term_merge_form',
3,
),
'access callback' => 'term_merge_access',
'access arguments' => array(
3,
),
'file' => 'term_merge.pages.inc',
'type' => MENU_LOCAL_TASK,
);
$items['admin/structure/taxonomy/%taxonomy_vocabulary_machine_name/merge/default'] = array(
'title' => 'Default',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/structure/taxonomy/%taxonomy_vocabulary_machine_name/merge/duplicates'] = array(
'title' => 'Merge Duplicate Terms',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'term_merge_duplicates_form',
3,
),
'access callback' => 'term_merge_access',
'access arguments' => array(
3,
),
'file' => 'term_merge.pages.inc',
'type' => MENU_LOCAL_TASK,
);
$items['taxonomy/term/%taxonomy_term/merge'] = array(
'title' => 'Merge Terms',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'term_merge_form',
NULL,
2,
),
'access callback' => 'term_merge_access',
'access arguments' => array(
NULL,
2,
),
'file' => 'term_merge.pages.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
$items['taxonomy/term/%taxonomy_term/merge/default'] = array(
'title' => 'Default',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['taxonomy/term/%taxonomy_term/merge/duplicates'] = array(
'title' => 'Merge Duplicate Terms',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'term_merge_duplicates_form',
NULL,
2,
),
'access callback' => 'term_merge_access',
'access arguments' => array(
NULL,
2,
),
'file' => 'term_merge.pages.inc',
'type' => MENU_LOCAL_TASK,
);
$items['term-merge/autocomplete/term-trunk/%taxonomy_vocabulary_machine_name'] = array(
'title' => 'Autocomplete Term Merge form term trunk',
'page callback' => 'term_merge_form_term_trunk_widget_autocomplete_autocomplete',
'page arguments' => array(
3,
),
'access callback' => 'term_merge_access',
'access arguments' => array(
3,
),
'file' => 'term_merge.pages.inc',
'type' => MENU_CALLBACK,
);
$items['admin/config/user-interface/term-merge'] = array(
'title' => 'Term Merge settings',
'description' => 'Configure Term Merge module.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'term_merge_admin_settings_form',
),
'access arguments' => array(
'administer term merge',
),
'file' => 'term_merge.admin.inc',
);
return $items;
}