You are here

function hosting_migrate_post_hosting_migrate_task in Hosting 5

Same name and namespace in other branches
  1. 6.2 migrate/hosting_migrate.drush.inc \hosting_migrate_post_hosting_migrate_task()
  2. 7.4 migrate/hosting_migrate.drush.inc \hosting_migrate_post_hosting_migrate_task()
  3. 7.3 migrate/hosting_migrate.drush.inc \hosting_migrate_post_hosting_migrate_task()

File

migrate/hosting_migrate.drush.inc, line 12

Code

function hosting_migrate_post_hosting_migrate_task($task, $data) {
  if ($task->ref->type == 'site') {
    $target = $task->task_args['target_platform'];
    $task->ref->verified = 0;
    $task->ref->platform = $target;
    node_save($task->ref);
  }
}