You are here

public function MigrateDestinationCRMCoreActivity::fields in CRM Core 7

Returns a list of fields available to be mapped for the activity type (bundle)

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

modules/crm_core_activity/includes/crm_core_activity.migrate.inc, line 39

Class

MigrateDestinationCRMCoreActivity

Code

public function fields($migration = NULL) {
  $fields = array();

  // First the core (activity table) properties
  $fields['activity_id'] = t('CRM Core Activity: Existing Activity ID');
  $fields['created'] = t('Created timestamp');
  $fields['changed'] = t('Modified timestamp');
  $fields['uid'] = t('Authored by (uid)');
  $fields += migrate_handler_invoke_all('Entity', 'fields', $this->entityType, $this->bundle, $migration);
  return $fields;
}