From 6bf706e4b359b6bb79192e2d5174c8a9ebb82b3c Mon Sep 17 00:00:00 2001 From: Andrew Hunt <andrew@aghstrategies.com> Date: Thu, 9 Feb 2017 20:44:59 -0500 Subject: [PATCH] hook_civicrm_mailingGroups - fix formatting --- docs/hooks/hook_civicrm_mailingGroups.md | 28 ++++++++++++++---------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/docs/hooks/hook_civicrm_mailingGroups.md b/docs/hooks/hook_civicrm_mailingGroups.md index e447cb09..f7d11b0a 100644 --- a/docs/hooks/hook_civicrm_mailingGroups.md +++ b/docs/hooks/hook_civicrm_mailingGroups.md @@ -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'; +} +``` -- GitLab