function taxonomy_xml_menu in Taxonomy import/export via XML 7
Same name and namespace in other branches
- 5.2 taxonomy_xml.module \taxonomy_xml_menu()
- 5 taxonomy_xml.module \taxonomy_xml_menu()
- 6.2 taxonomy_xml.module \taxonomy_xml_menu()
- 6 taxonomy_xml.module \taxonomy_xml_menu()
Implements hook_menu().
File
- ./
taxonomy_xml.module, line 137 - Make it possible to import and export taxonomies as XML documents.
Code
function taxonomy_xml_menu() {
if (!module_exists('taxonomy')) {
return NULL;
}
$items = array();
$items[TAXONOMY_XML_ADMIN . '/export'] = array(
'title' => 'Export',
'access arguments' => array(
'administer taxonomy',
),
'page callback' => 'taxonomy_xml_export',
'file' => 'taxonomy_xml.export.inc',
'type' => MENU_LOCAL_TASK,
);
$items[TAXONOMY_XML_VOCAB_PATH . '/%taxonomy_vocabulary_machine_name/%'] = array(
'title' => 'Export',
'access arguments' => array(
'administer taxonomy',
),
'page callback' => 'taxonomy_xml_export_vocabulary',
'page arguments' => array(
2,
3,
),
'file' => 'taxonomy_xml.export.inc',
'type' => MENU_LOCAL_TASK,
);
$items[TAXONOMY_XML_ADMIN . '/import'] = array(
'title' => 'Import',
'access arguments' => array(
'administer taxonomy',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'taxonomy_xml_import_form',
),
'file' => 'taxonomy_xml.admin.inc',
'type' => MENU_LOCAL_TASK,
);
$items[TAXONOMY_XML_ADMIN . '_xml/flush'] = array(
'title' => 'Delete cache file',
'access arguments' => array(
'administer taxonomy',
),
'page callback' => 'taxonomy_xml_flush_cache_file',
'type' => MENU_CALLBACK,
);
$items[TAXONOMY_XML_ADMIN . '/import/services'] = array(
'title' => 'About taxonomy_import services',
'access arguments' => array(
'administer taxonomy',
),
'page callback' => 'taxonomy_xml_about_services',
'type' => MENU_LOCAL_TASK,
);
return $items;
}