You are here

function date_copy_menu in Date 6

Same name and namespace in other branches
  1. 5.2 date_copy/date_copy.module \date_copy_menu()
  2. 5 date_copy.module \date_copy_menu()

Implementation of hook_menu().

File

date_copy/date_copy.module, line 16

Code

function date_copy_menu() {
  $items = array();
  $items['admin/content/date'] = array(
    'title' => 'Date Import/Export',
    'description' => 'Import and export date data.',
    'access arguments' => array(
      'administer nodes',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'date_copy_import_ical_form',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/content/date/import'] = array(
    'title' => 'Import',
    'access arguments' => array(
      'administer nodes',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'date_copy_import_ical_form',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 1,
  );
  $items['admin/content/date/export'] = array(
    'title' => 'Export',
    'access arguments' => array(
      'administer nodes',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'date_copy_export_form',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
  );
  $items['admin/content/date/import/ical'] = array(
    'title' => 'iCal',
    'access arguments' => array(
      'administer nodes',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'date_copy_import_ical_form',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 1,
  );
  $items['admin/content/date/import/event'] = array(
    'title' => 'Events',
    'access arguments' => array(
      'administer nodes',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'date_copy_import_event_form',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
  );
  $items['admin/content/date/import/csv'] = array(
    'title' => 'CSV',
    'access arguments' => array(
      'administer nodes',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'date_copy_import_csv_form',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 3,
  );
  return $items;
}