You are here

function MigrateDestinationVotingapi::postImport in Migrate Extras 7.2

Same name and namespace in other branches
  1. 6.2 votingapi.inc \MigrateDestinationVotingapi::postImport()

We're done with importing votes, recalculate the results.

File

./votingapi.inc, line 101
VotingAPI module integration

Class

MigrateDestinationVotingapi
Destination class for the votingapi_vote table.

Code

function postImport() {
  foreach ($this->importedIds as $entity_type => $entity_ids) {
    $this->importedIds = array_unique($this->importedIds);
    foreach ($entity_ids as $entity_id) {
      votingapi_recalculate_results($entity_type, $entity_id, TRUE);
    }
  }
}