You are here

function MigrateDestinationUserpoints::fields in User Points 7

Returns a list of fields available to be mapped/

Return value

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

Overrides MigrateDestination::fields

1 call to MigrateDestinationUserpoints::fields()
MigrateDestinationUserpoints::import in ./userpoints.migrate.inc
Import a single userpoints transaction.

File

./userpoints.migrate.inc, line 123
Migration class for userpoint transactions.

Class

MigrateDestinationUserpoints
Destination class for migrating userpoints.

Code

function fields() {
  return array(
    'txn_id' => 'Transaction ID of points (if present an update is performed)',
    'points' => t('Number of points (int) (required)'),
    'moderate' => t('Moderation status. (TRUE, FALSE or empty)'),
    'uid' => 'User ID',
    'time_stamp' => 'unix time of the points assignment date',
    'operation' => t('Name for moderation operation (e.g. "published", "moderated", etc.)'),
    'tid' => t('Userpints category ID'),
    'expirydate' => t('Expiration date: timestamp or 0, 0 = non-expiring; NULL = site default'),
    'description' => t('Description'),
    'reference' => t('reserved for module specific use'),
    'display' => t('Whether or not to display "points awarded" message'),
    'entity_id' => 'ID of an entity in the Database. ex. $node->id or $user->uid',
    'entity_type' => 'string of the entity type. ex. "node" or "user"',
  );
}