You are here

function migrate_extras_settings in Migrate Extras 6

1 string reference to 'migrate_extras_settings'
migrate_extras_menu in ./migrate_extras.module
Implementation of hook_menu().

File

./migrate_extras.module, line 28

Code

function migrate_extras_settings() {
  $form = array();
  $form['users'] = array(
    '#type' => 'fieldset',
    '#title' => t('Users'),
  );

  //this should be moved to migrate_module
  $form['users']['migrate_extras_use_md5'] = array(
    '#type' => 'checkbox',
    '#title' => t('MD5 password field'),
    '#default_value' => variable_get('migrate_extras_use_md5', 0),
    '#description' => t("Enable an md5 password field for users, use\n      this if you are migrating passwords that are already encrypted."),
  );
  $form['users']['migrate_extras_user_fields_all'] = array(
    '#type' => 'checkbox',
    '#title' => t("Use all user fields"),
    '#default_value' => variable_get('migrate_extras_user_fields_all', 0),
    '#description' => t('Enable all the core drupal user fields
      available, for advanced imports. None of these fields are required
      to import users. Some fields may only take data in specialized
      format. See <a href="http://api.drupal.org/api/function/user_schema">
      http://api.drupal.org/api/function/user_schema</a> for more info.'),
  );

  /*  This is already implemented at migrate module.
    $form['users']['migrate_extras_set_uid'] = array(
      '#type' => 'checkbox',
      '#title' => t("Set User ID explicitly (dangerous)"),
      '#default_value' => variable_get('migrate_extras_set_uid', 0),
      '#description' => t("This will set the user id of the imported user,
         which means that you may overwrite your existing users, including
         user 1. Use with extreme caution."),
    );
  */
  $form['node'] = array(
    '#type' => 'fieldset',
    '#title' => t('Nodes'),
  );
  $form['node']['migrate_extras_use_master_node_map'] = array(
    '#type' => 'checkbox',
    '#title' => t('Use the migrate extras master node map.'),
    '#default_value' => variable_get('migrate_extras_use_master_node_map', 0),
    '#description' => t("This will make sure that when any node content\n      set adds a new node, that a map will be added to the 'migrate_extras_node_map'\n      table. This is good if you are using multiple content sets to import nodes and\n      want the convenience of using just one map table as the basis for\n      following imports like comments. Only use this if source ids across\n      content sets are unique and are all of integer type."),
  );
  return system_settings_form($form);
}