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
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
f334dbb8
Unverified
Commit
f334dbb8
authored
6 years ago
by
Seamus Lee
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #560 from scardinius/patch-4
Update hook_civicrm_export
parents
ce47b0db
4f09abca
No related branches found
Branches containing commit
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_export.md
+7
-6
7 additions, 6 deletions
docs/hooks/hook_civicrm_export.md
with
7 additions
and
6 deletions
docs/hooks/hook_civicrm_export.md
+
7
−
6
View file @
f334dbb8
...
...
@@ -7,7 +7,7 @@ export.
## Availability
This hook was first available in CiviCRM 3.2.4
This hook was first available in CiviCRM 3.2.4
, $componentTable and $ids variables are available in CiviCRM 5.8.0
## Definition
...
...
@@ -19,14 +19,15 @@ This hook was first available in CiviCRM 3.2.4
used during export
-
@param array $headerRows - header rows for output
-
@param array $sqlColumns - SQL columns
-
@param int $exportMode - export mode ( contact, contribution,
etc...)
-
@param int $exportMode - export mode ( contact, contribution, etc...)
-
@param string $componentTable - Name of temporary table
-
@param array $ids - Array of object's ids
## Details
## Example
function civitest_civicrm_export( $exportTempTable, $headerRows, $sqlColumns, $exportMode ) {
function civitest_civicrm_export( $exportTempTable, $headerRows, $sqlColumns, $exportMode
, $componentTable, $ids
) {
$writeHeader = true;
$offset = 0;
$limit = 200;
...
...
@@ -68,7 +69,7 @@ This hook was first available in CiviCRM 3.2.4
Second example, adding columns to the export and leaving the export to do its thing
Note example above isn't using pass by reference on the fields and hence may have been that way
function civitest_civicrm_export ( $exportTempTable, &$headerRows, &$sqlColumns, $exportMode ) {
function civitest_civicrm_export ( $exportTempTable, &$headerRows, &$sqlColumns, $exportMode
, $componentTable, $ids
) {
// Only want to do this for contribution export
if ($exportMode==2) {
...
...
@@ -108,4 +109,4 @@ This hook was first available in CiviCRM 3.2.4
$sqlColumns['psf_nominal_code'] = 'psf_nominal_code varchar(255)';
$sqlColumns['psf_cost_centre'] = 'psf_cost_centre varchar(255)';
}
}
\ No newline at end of file
}
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