You are here

class PartyMergeHandler in Party 7

Merge two Parties together.

Hierarchy

Expanded class hierarchy of PartyMergeHandler

1 string reference to 'PartyMergeHandler'
party_entity_info in ./party.module
Implements hook_entity_info().

File

includes/entity_merge/handlers/party.inc, line 10
The merge handler for merging two parties together.

View source
class PartyMergeHandler extends EntityMergeHandlerDefault {

  /**
   * Overrides EntityMergeHandlerDefault::registerSubProcesses().
   */
  public function registerSubProcesses() {
    $processes = array();
    $processes['unset_email'] = array(
      'class' => 'PartyMergeProcessUnsetEmail',
      'weight' => -40,
    );
    $processes['merge_fields'] = array(
      'class' => 'EntityMergeProcessMergeFields',
      'weight' => -5,
    );
    foreach (party_get_data_set_info() as $data_set_name => $info) {
      $processes['merge_data_set_' . $data_set_name] = array(
        'class' => 'PartyMergeProcessMergeDataSet',
        'weight' => 0,
        'data_set_name' => $data_set_name,
      );
    }
    $processes['invoke_hooks'] = array(
      'class' => 'EntityMergeProcessInvokeHooks',
      'weight' => 10,
    );
    $processes['save_target'] = array(
      'class' => 'EntityMergeProcessSaveTarget',
      'weight' => 20,
    );
    $processes['set_merged_flag'] = array(
      'class' => 'PartyMergeProcessSetHidden',
      'weight' => 30,
    );
    return $processes;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PartyMergeHandler::registerSubProcesses public function Overrides EntityMergeHandlerDefault::registerSubProcesses().