Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Developer Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
brienne
Developer Documentation
Commits
abab6fca
Commit
abab6fca
authored
6 years ago
by
Sean Madsen
Browse files
Options
Downloads
Patches
Plain Diff
Improve hook formatting
parent
f34f566c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/hooks/hook_civicrm_alterLocationMergeData.md
+18
-25
18 additions, 25 deletions
docs/hooks/hook_civicrm_alterLocationMergeData.md
with
18 additions
and
25 deletions
docs/hooks/hook_civicrm_alterLocationMergeData.md
+
18
−
25
View file @
abab6fca
...
...
@@ -17,28 +17,21 @@ hook_civicrm_alterLocationMergeData(&$blocksDAO, $mainId, $otherId, $migrationIn
## Parameters
*
array $blocksDAO: Array of location DAO to be saved. These are arrays in 2 keys 'update' & 'delete'.
*
int $mainId: Contact ID of the contact that survives the merge.
*
int $otherId: Contact ID of the contact that will be absorbed and deleted.
*
array $migrationInfo: Calculated migration info.
## Details
The $blocksDAO contains a list of 'location blocks' (eg: emails, phones,
addresses) which will be updated or deleted as part of the merge. This is
formatted like:
```
php
[
email
delete
id
=>
object
update
id
=>
object
address
delete
id
=>
object
update
id
=>
object
]
```
*
array
`$blocksDAO`
: Array of location DAO objects. Formatted as follows:
```php
[
'email' => [
'delete' => ['id' => object],
'update' => ['id' => object],
],
'address' => [
'delete' => ['id' => object],
'update' => ['id' => object],
],
]
```
*
int
`$mainId`
: Contact ID of the contact that survives the merge.
*
int
`$otherId`
: Contact ID of the contact that will be absorbed and deleted.
*
array
`$migrationInfo`
: Calculated migration info.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment