You are here

public function MigrateDestinationOGMembership::fields in Organic groups 7.2

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

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 MigrateDestination::fields

File

includes/migrate/plugins/destinations/og_membership.inc, line 165
Import Organic group memberships.

Class

MigrateDestinationOGMembership
Destination class implementing migration into an OG Audience field.

Code

public function fields() {
  return array(
    'group_type' => 'Group entity type',
    'gid' => 'Group entity id',
    'entity_type' => 'Entity type',
    'etid' => 'Entity ID (e.g. user ID)',
    'state' => 'User\'s group membership can be OG_STATE_ACTIVE or OG_STATE_PENDING. Defaults to OG_STATE_ACTIVE.',
    'created' => 'Create date for this membership. Defaults to REQUEST_TIME',
    'is_admin' => 'Legacy: Is member an administrator in this group. Defaults to No.',
    'group_roles' => 'Array of role names to assign to the user in this group.',
  );
}