You are here

function taxonomy_xml_menu in Taxonomy import/export via XML 6

Same name and namespace in other branches
  1. 5.2 taxonomy_xml.module \taxonomy_xml_menu()
  2. 5 taxonomy_xml.module \taxonomy_xml_menu()
  3. 6.2 taxonomy_xml.module \taxonomy_xml_menu()
  4. 7 taxonomy_xml.module \taxonomy_xml_menu()

Implementation of hook_menu: Define menu links.

@note See hook_menu for a description of return values.

File

./taxonomy_xml.module, line 111
taxonomy_xml.module This module makes it possible to import and export taxonomies as XML documents.

Code

function taxonomy_xml_menu() {
  if (!module_exists('taxonomy')) {
    return;
  }
  $items = array();
  $items['admin/content/taxonomy/export'] = array(
    'title' => t('Export'),
    'access arguments' => array(
      'export taxonomy',
    ),
    'page callback' => 'taxonomy_xml_export',
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/content/taxonomy/import'] = array(
    'title' => t('Import'),
    'access arguments' => array(
      'administer taxonomy',
    ),
    'page callback' => 'taxonomy_xml_import',
    'type' => MENU_LOCAL_TASK,
  );
  $items['taxonomy_xml'] = array(
    'title' => t('Taxonomy XML'),
    'access arguments' => array(
      'access content',
    ),
    'page callback' => 'taxonomy_xml_file',
    'type' => MENU_CALLBACK,
  );
  $items['admin/content/taxonomy/import/services'] = array(
    'title' => t('About taxonomy_import services'),
    'access arguments' => array(
      'administer taxonomy',
    ),
    'page callback' => 'taxonomy_xml_about_services',
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}