You are here

public function PartyMergeProcessUnsetEmail::run in Party 7

Overrides EntityMergeProcessBase::run()

File

includes/entity_merge/processes/party.unset_primary.inc, line 12
Contains merge process for unsetting primary emails.

Class

PartyMergeProcessUnsetEmail
@file Contains merge process for unsetting primary emails.

Code

public function run(&$context = array()) {

  // Unset primary email field ready for merging.
  $ids = array(
    $this->entity1->pid,
    $this->entity2->pid,
  );
  db_update('party')
    ->fields(array(
    'email' => NULL,
  ))
    ->condition('pid', $ids)
    ->execute();
  parent::run($context);
}