UserDestinationHandler.inc in CRM Core 7
File
modules/crm_core_data_import/plugins/destination/UserDestinationHandler.inc
View source
<?php
$plugin = array(
'label' => t('User'),
'handler' => array(
'class' => 'UserDataDestinationHandler',
),
);
class UserDataDestinationHandler extends CRMCoreDataDestinationHandler {
public function __construct() {
$this->entityType = 'user';
}
public function getFields($bundle) {
$fields = parent::getFields($bundle);
$fields['name'] = t('Username');
$fields['mail'] = t('Email');
$fields['pass'] = t('Password');
$fields['theme'] = t('Theme');
$fields['signature'] = t('Signature');
$fields['signature_format'] = t('Signature format');
$fields['created'] = t('Created');
$fields['access'] = t('Access');
$fields['login'] = t('Login');
$fields['status'] = t('Status');
$fields['timezone'] = t('Timezone');
$fields['language'] = t('Language');
$fields['picture'] = t('Picture');
$fields['init'] = t('Init');
return $fields;
}
public function migrateDestination($entity_bundle) {
return new MigrateDestinationUser();
}
public function migrateDestinationMap() {
return MigrateDestinationUser::getKeySchema();
}
}