You are here

public function DrupalDestinationUser::fields in Drupal-to-Drupal data migration 7.2

Returns a list of fields available to be mapped for users

Parameters

Migration $migration: Optionally, the migration containing this destination.

Return value

array Keys: machine names of the fields (to be passed to addFieldMapping) Values: Human-friendly descriptions of the fields.

Overrides MigrateDestinationUser::fields

File

./user.inc, line 263
Base class for migrating users into Drupal.

Class

DrupalDestinationUser
We add support for user paths, which is not supported by the core destination, so document the presence of the field.

Code

public function fields($migration = NULL) {
  $fields = parent::fields($migration);
  $fields['path'] = t('Path alias');
  return $fields;
}