You are here

party.set_hidden.inc in Party 7

Contains merge process for setting the hidden flag.

File

includes/entity_merge/processes/party.set_hidden.inc
View source
<?php

/**
 * @file
 * Contains merge process for setting the hidden flag.
 */
class PartyMergeProcessSetHidden extends EntityMergeProcessBase {

  /**
   * Overrides EntityMergeProcessBase::run()
   */
  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);
  }

  /**
   * {@inheritdoc}
   */
  public function getProgressMessage(&$context = array()) {
    return t('Marking secondary party as merged.');
  }

}

Classes

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