You are here

public function MigrateDestinationOGMembership::fields in Migrate Extras 6.2

Derived classes must implement fields(), returning a list of available destination fields.

Return value

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

Overrides MigrateDestination::fields

File

./og.inc, line 74
Import Organic group memberships.

Class

MigrateDestinationOGMembership
Destination class implementing migration into og_uid table.

Code

public function fields() {
  return array(
    'gid' => 'Group node id',
    'uid' => 'User ID',
    'is_active' => 'User\'s group membership is active (1) or pending (0)',
    'is_admin' => 'Is member an administrator in this group',
    'created' => 'Create date for this membership. Defaults to time()',
  );
}