You are here

function content_copy_menu in Content Construction Kit (CCK) 6

Same name and namespace in other branches
  1. 5 content_copy.module \content_copy_menu()
  2. 6.3 modules/content_copy/content_copy.module \content_copy_menu()
  3. 6.2 modules/content_copy/content_copy.module \content_copy_menu()

Implementation of hook_menu().

File

modules/content_copy/content_copy.module, line 33
Adds capability to import/export CCK field data definitions.

Code

function content_copy_menu() {
  $items = array();
  $items['admin/content/types/export'] = array(
    'title' => 'Export',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'content_copy_export_form',
    ),
    'access arguments' => array(
      'administer content types',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 3,
  );
  $items['admin/content/types/import'] = array(
    'title' => 'Import',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'content_copy_import_form',
    ),
    'access arguments' => array(
      'administer content types',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 4,
  );
  return $items;
}