You are here

public function PartyMergeProcessSetHidden::run in Party 7

Overrides EntityMergeProcessBase::run()

File

includes/entity_merge/processes/party.set_hidden.inc, line 12
Contains merge process for setting the hidden flag.

Class

PartyMergeProcessSetHidden
@file Contains merge process for setting the hidden flag.

Code

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

  // Mark the second party as merged and save.
  $this->entity2->hidden = TRUE;
  $this->entity2->merged_party = $this->entity1->pid;
  $this->entity2
    ->save();
  parent::run($context);
}