You are here

function migrate_extras_migrate_fields_user in Migrate Extras 6

Implementation of hook_migrate_destination_fields_user().

File

./migrate_extras.module, line 113

Code

function migrate_extras_migrate_fields_user($type) {
  $fields = array();

  //set md5 passwords without reencrypting them.
  if (variable_get('migrate_extras_use_md5', 0)) {
    $fields['md5pass'] = t('User: Password(md5)');
  }

  /* This is already implemented in migrate.module
    //set md5 passwords without reencrypting them.
    if (variable_get('migrate_extras_set_uid', 0)) {
      $fields['uid'] = t('User: Set UID (dangerous)');
    }
  */

  //set md5 passwords without reencrypting them.
  if (variable_get('migrate_extras_user_fields_all', 0)) {
    $fields['mode'] = t('User: Mode');

    //Per-user comment display mode (threaded vs. flat), used by the {comment} module.
    $fields['sort'] = t('User: Sort');

    // Per-user comment sort order (newest vs. oldest first), used by the {comment} module.
    $fields['threshold'] = t('User: Threshold (unused)');

    // Previously used by the {comment} module for per-user preferences; no longer used.
    $fields['theme'] = t('User: Theme');

    // User's default theme.
    $fields['signature'] = t('User: Signature');

    // User's signature.
    $fields['signature_format'] = t('User: Signature Format');

    // The {filter_formats}.format of the signature.
    // Already implemented in migrate.module

    //$fields['status'] = t('User: Status');

    // Whether the user is active(1) or blocked(0).
    $fields['timezone'] = t('User: Timezone');

    // User's timezone.
    $fields['language'] = t('User: Language');

    // User's default language.
    $fields['picture'] = t('User: Picture');

    // Path to the user's uploaded picture.
    $fields['init'] = t('User: (Init)ial Email');

    //Email address used for initial account creation.
    $fields['data'] = t('User: Data (depricated)');

    /* A serialized array of name value pairs that are related to the user.
     * Any form values posted during user edit are stored and are loaded
     * into the $user object during user_load(). Use of this field is
     * discouraged and it will likely disappear in a future version of
     * Drupal.'
     */
  }
  return $fields;
}