Skip to content
Snippets Groups Projects
Commit 6bf706e4 authored by Andie Hunt's avatar Andie Hunt
Browse files

hook_civicrm_mailingGroups - fix formatting

parent e8ed03ff
No related branches found
No related tags found
No related merge requests found
...@@ -7,25 +7,31 @@ other groups as needed. ...@@ -7,25 +7,31 @@ other groups as needed.
## Definition ## Definition
hook_civicrm_mailingGroups( &$form, &$groups, &$mailings ) ```php
hook_civicrm_mailingGroups(&$form, &$groups, &$mailings)
```
## Parameters ## Parameters
- $form - the form object for which groups / mailings being displayed - object `$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 - array `$groups` - the list of groups being included / excluded
- array `$mailings` - the list of mailings being included / excluded
## Returns ## Returns
- null - the return value is ignored - `NULL` - the return value is ignored
## Example ## Example
function civitest_civicrm_mailingGroups( &$form, &$groups, &$mailings ) { ```php
function civitest_civicrm_mailingGroups( &$form, &$groups, &$mailings ) {
// unset group id 4 // unset group id 4
unset( $groups[4] ); unset( $groups[4] );
// add a fictitious mailing // add a fictitious mailing
$mailings[1] = 'This mailing does not exist'; $mailings[1] = 'This mailing does not exist';
} }
\ No newline at end of file ```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment