summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Ryan2011-07-14 00:06:38 (GMT)
committer Mike Ryan2011-07-14 00:06:38 (GMT)
commit3ab7656cd3a1183ad729d0bc076b77ac4dba2288 (patch)
treeb36884ca9192ff30d1ab9c0ee8c0ce5632656519
parent4c3e67482062cd0074b03a124201feb8cfc48e40 (diff)
Issue #1218244 by mikeryan: Support for is_new for users
-rw-r--r--CHANGELOG.txt1
-rw-r--r--migrate_example/beer.inc2
-rw-r--r--migrate_example/wine.inc2
-rw-r--r--plugins/destinations/user.inc1
4 files changed, 4 insertions, 2 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index b8379d4..381b7f7 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -3,6 +3,7 @@ Next release
============
Features and enhancements
+- #1218244 - Support for is_new for users.
- #1216796 - Use file_destination() to generate destination filespec.
- #719650 - Implemented ability to assign migrations to groups, and run by group.
- #1201762 - Implemented built-in caching for source counts, and flag to enable it.
diff --git a/migrate_example/beer.inc b/migrate_example/beer.inc
index f1dba6b..fb99960 100644
--- a/migrate_example/beer.inc
+++ b/migrate_example/beer.inc
@@ -220,7 +220,7 @@ class BeerUserMigration extends BasicExampleMigration {
// This is a shortcut you can use to mark several destination fields as DNM
// at once
$this->addUnmigratedDestinations(array('theme', 'signature', 'access', 'login',
- 'timezone', 'language', 'picture'));
+ 'timezone', 'language', 'picture', 'is_new'));
// Oops, we made a typo - this should have been 'init'! If you have
// migrate_ui enabled, look at the BeerUser info page - you'll see that it
diff --git a/migrate_example/wine.inc b/migrate_example/wine.inc
index 552df5d..72de14f 100644
--- a/migrate_example/wine.inc
+++ b/migrate_example/wine.inc
@@ -321,7 +321,7 @@ class WineUserMigration extends AdvancedExampleMigration {
// Unmapped source fields
// Unmapped destination fields
- $this->addUnmigratedDestinations(array('theme', 'timezone', 'language'));
+ $this->addUnmigratedDestinations(array('theme', 'timezone', 'language', 'is_new'));
}
public function prepare(stdClass $account, stdClass $row) {
diff --git a/plugins/destinations/user.inc b/plugins/destinations/user.inc
index 78fbd51..63d4c1d 100644
--- a/plugins/destinations/user.inc
+++ b/plugins/destinations/user.inc
@@ -70,6 +70,7 @@ class MigrateDestinationUser extends MigrateDestinationEntity {
$fields = array();
// First the core (users table) properties
$fields['uid'] = t('User: Existing user ID');
+ $fields['is_new'] = t('User: Indicates a new user with the specified uid should be created');
$fields['name'] = t('User: Username');
$fields['pass'] = t('User: Password (plain text)');
$fields['mail'] = t('User: Email address');