class PartyMergeProcessUnsetEmail in Party 7
@file Contains merge process for unsetting primary emails.
Hierarchy
- class \PartyMergeProcessUnsetEmail extends \EntityMergeProcessBase
Expanded class hierarchy of PartyMergeProcessUnsetEmail
1 string reference to 'PartyMergeProcessUnsetEmail'
- PartyMergeHandler::registerSubProcesses in includes/
entity_merge/ handlers/ party.inc - Overrides EntityMergeHandlerDefault::registerSubProcesses().
File
- includes/
entity_merge/ processes/ party.unset_primary.inc, line 7 - Contains merge process for unsetting primary emails.
View source
class PartyMergeProcessUnsetEmail extends EntityMergeProcessBase {
/**
* Overrides EntityMergeProcessBase::run()
*/
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);
}
/**
* {@inheritdoc}
*/
public function getProgressMessage(&$context = array()) {
return t('Removing the secondary party primary email address.');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PartyMergeProcessUnsetEmail:: |
public | function | ||
PartyMergeProcessUnsetEmail:: |
public | function | Overrides EntityMergeProcessBase::run() |