You are here

function dbtng_migrator_menu in DBTNG Migrator 7

Implements hook_menu().

File

./dbtng_migrator.module, line 19

Code

function dbtng_migrator_menu() {
  $items = array();
  $items['admin/structure/dbtng-migrator'] = array(
    'title' => 'Migrator',
    'description' => 'Use the power of "Database: The Next Generation (DBTNG)" to migrate a database.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'dbtng_migrator_settings',
    ),
    'access arguments' => array(
      'use dbtng migrator',
    ),
    'file' => 'dbtng_migrator.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/structure/dbtng-migrator/default'] = array(
    'title' => 'Migrator',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/structure/dbtng-migrator/check'] = array(
    'title' => 'Migrator database check',
    'description' => 'Check that the Drupal schema currently reflects the state of the database.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'dbtng_migrator_check_form',
    ),
    'access arguments' => array(
      'use dbtng migrator',
    ),
    'file' => 'dbtng_migrator.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}