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
6bf706e4
Commit
6bf706e4
authored
8 years ago
by
Andie Hunt
Browse files
Options
Downloads
Patches
Plain Diff
hook_civicrm_mailingGroups - fix formatting
parent
e8ed03ff
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_mailingGroups.md
+17
-11
17 additions, 11 deletions
docs/hooks/hook_civicrm_mailingGroups.md
with
17 additions
and
11 deletions
docs/hooks/hook_civicrm_mailingGroups.md
+
17
−
11
View file @
6bf706e4
...
...
@@ -7,25 +7,31 @@ other groups as needed.
## Definition
hook_civicrm_mailingGroups( &$form, &$groups, &$mailings )
```
php
hook_civicrm_mailingGroups
(
&
$form
,
&
$groups
,
&
$mailings
)
```
## Parameters
-
$form - the form object for which groups / mailings being displayed
-
$groups - the list of groups being included / excluded
-
$mailings - the list of mailings being included / excluded
-
object
`$form`
- the form object for which groups / mailings being displayed
-
array
`$groups`
- the list of groups being included / excluded
-
array
`$mailings`
- the list of mailings being included / excluded
## Returns
-
null
- the return value is ignored
-
`NULL`
- the return value is ignored
## Example
function civitest_civicrm_mailingGroups( &$form, &$groups, &$mailings ) {
```
php
function
civitest_civicrm_mailingGroups
(
&
$form
,
&
$groups
,
&
$mailings
)
{
// unset group id 4
unset( $groups[4] );
// unset group id 4
unset
(
$groups
[
4
]
);
// add a fictitious mailing
$mailings[1] = 'This mailing does not exist';
}
\ No newline at end of file
// add a fictitious mailing
$mailings
[
1
]
=
'This mailing does not exist'
;
}
```
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