You are here

function disqus_migrate_menu in Disqus 6

Implementation of hook_menu().

File

./disqus_migrate.module, line 30

Code

function disqus_migrate_menu() {
  $items = array();
  $items['admin/settings/disqus/import'] = array(
    'title' => 'Import',
    'description' => 'Settings for importing comments from Disqus into Drupal.',
    'access arguments' => array(
      'administer disqus',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'disqus_migrate_admin_import_settings',
    ),
    'file' => 'include/disqus_migrate.import.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/content/comment/disqus_import'] = array(
    'title' => 'Disqus Import',
    'description' => 'Import comments from Disqus into Drupal.',
    'access arguments' => array(
      'administer disqus',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'disqus_migrate_admin_import',
    ),
    'file' => 'include/disqus_migrate.import.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/settings/disqus/export'] = array(
    'title' => 'Export',
    'description' => 'Settings for exporting comments from Drupal into Disqus',
    'access arguments' => array(
      'administer disqus',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'disqus_migrate_admin_export_settings',
    ),
    'file' => 'include/disqus_migrate.export.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/content/comment/disqus_export'] = array(
    'title' => 'Disqus Export',
    'description' => 'Export comments from the Drupal to Disqus.',
    'access arguments' => array(
      'administer disqus',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'disqus_migrate_admin_export',
    ),
    'file' => 'include/disqus_migrate.export.inc',
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}