2, ); return $api; } /** * Implements hook_menu(). */ 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; } /** * Form to setting up the database name and migration file path for migration of data. */ 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, ); // $form['redcat_migration_file_path'] = array( // '#type' => 'textfield', // '#title' => 'Migrated Files Path', // '#default_value' => variable_get('redcat_migration_file_path', '/Users/amodi/Sites/redcat.org/sites/redcat.org/files'), // '#description' => t('Please enter the full path to get to the home directory of the migrating site - the files will be found through the base'), // '#required' => TRUE, // ); return system_settings_form($form); }