You are here

function MigrateDestinationVotingapi::postImport in Migrate Extras 6.2

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

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

File

./votingapi.inc, line 98
VotingAPI module integration

Class

MigrateDestinationVotingapi
Destination class for the votingapi_vote table.

Code

function postImport() {
  $this->importedIds = array_unique($this->importedIds);
  foreach ($this->importedIds as $content_type => $content_ids) {
    foreach ($content_ids as $content_id) {
      votingapi_recalculate_results($content_type, $content_id, TRUE);
    }
  }
}