You are here

function taxonomy_csv_menu in Taxonomy CSV import/export 6.3

Same name and namespace in other branches
  1. 5 taxonomy_csv.module \taxonomy_csv_menu()
  2. 6.5 taxonomy_csv.module \taxonomy_csv_menu()
  3. 6.2 taxonomy_csv.module \taxonomy_csv_menu()
  4. 6.4 taxonomy_csv.module \taxonomy_csv_menu()
  5. 7.5 taxonomy_csv.module \taxonomy_csv_menu()
  6. 7.4 taxonomy_csv.module \taxonomy_csv_menu()

Implements hook_menu().

@note See hook_menu for a description of return values.

File

./taxonomy_csv.module, line 67
Quick export and import of taxonomies, structure or lists of terms to or from a csv local or distant file or a text area.

Code

function taxonomy_csv_menu() {
  $items = array();
  $items['admin/content/taxonomy/csv_import'] = array(
    'title' => 'CSV import',
    'description' => 'Import taxonomies, hierarchical structure or simple lists of terms and properties with CSV file or text.',
    'page callback' => 'taxonomy_csv_form_import_prepare',
    'access arguments' => array(
      'administer taxonomy',
    ),
    'weight' => 12,
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/content/taxonomy/csv_export'] = array(
    'title' => 'CSV export',
    'description' => 'Export terms and properties to a CSV file.',
    'page callback' => 'taxonomy_csv_form_export_prepare',
    'access arguments' => array(
      'administer taxonomy',
    ),
    'weight' => 13,
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}