dbtng_migrator.module in DBTNG Migrator 7
File
dbtng_migrator.module
View source
<?php
function dbtng_migrator_permission() {
return array(
'use dbtng migrator' => array(
'title' => t('Use DBTNG Migrator'),
'description' => t('Allows users to migrate data from one database connection to another.'),
'restrict access' => TRUE,
),
);
}
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;
}