123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
- define('MIG_MAT_SRC_DB', variable_get('migrate_materio_database', ''));
- define('MIG_MAT_SRC_DB_D6', variable_get('migrate_materio_database_drupal6', ''));
- function migrate_materio_migrate_api() {
- $api = array(
- 'api' => 2,
- );
- return $api;
- }
- function migrate_materio_menu() {
- $items = array();
- $items['admin/config/development/migrate_materio'] = array(
- 'title' => 'Materio Migration Settings',
- 'page callback' => 'drupal_get_form',
- 'page arguments' => array('migrate_materio_settings'),
- 'access callback' => 'user_access',
- 'access arguments' => array('administer site configuration'),
- );
- return $items;
- }
- function migrate_materio_settings($form, &$form_state) {
- $form['migrate_materio_database'] = array(
- '#type' => 'textfield',
- '#title' => 'Database name',
- '#default_value' => variable_get('migrate_materio_database', ''),
- '#description' => t('Please enter the name of the database. Note that the database must be accessible by current website db user and must reside on the same db server.'),
- '#required' => TRUE,
- );
-
- $form['migrate_materio_database_drupal6'] = array(
- '#type' => 'textfield',
- '#title' => 'Drupal 6 Database name',
- '#default_value' => variable_get('migrate_materio_database_drupal6', ''),
- '#description' => t('Please enter the name of the drupal 6 database. Note that the database must be accessible by current website db user and must reside on the same db server.'),
- '#required' => TRUE,
- );
-
-
-
-
-
-
-
-
-
- return system_settings_form($form);
- }
|