function UserImportNodeprofile::settingsNodeprofileMatch in User Import 8
Same name and namespace in other branches
- 5 tests/user_import_nodeprofile.test \UserImportNodeprofile::settingsNodeprofileMatch()
Match CSV columns to Profile fields
1 call to UserImportNodeprofile::settingsNodeprofileMatch()
- UserImportNodeprofile::testCreateImport in tests/
user_import_nodeprofile.test - User with right permissions creates import (with new settings)
File
- tests/
user_import_nodeprofile.test, line 138
Class
- UserImportNodeprofile
- Test import of user data into Profile module
Code
function settingsNodeprofileMatch(&$edit) {
$edit['field_match[0][field_match]'] = 'nodeprofile-identity field_first_name_value';
// First Name
$edit['field_match[1][field_match]'] = 'nodeprofile-identity field_last_name_value';
// Last Name
$edit['field_match[10][field_match]'] = 'nodeprofile-biography field_cv_value';
// CV
$edit['field_match[7][field_match]'] = 'nodeprofile-contact_details field_can_be_contacted_value';
// Contact Permision
$edit['field_match[8][field_match]'] = 'nodeprofile-contact_details field_contact_preference_value';
// Contact Preference
$edit['field_match[9][field_match]'] = 'taxonomy-' . $this->vocabulary_id;
// Interests
$edit['field_match[6][field_match]'] = 'nodeprofile-biography field_blog_url';
// Blog
$edit['field_match[11][field_match]'] = 'nodeprofile-biography field_birthday_value';
// Birthday
}