From b0aa500672a7fb65e7a5d85dcd2fd4e31093dc0c Mon Sep 17 00:00:00 2001 From: Andrew Hunt <andrew@aghstrategies.com> Date: Thu, 9 Feb 2017 21:42:04 -0500 Subject: [PATCH] hook_civicrm_optionValues: fixed formatting --- docs/hooks/hook_civicrm_optionValues.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/hooks/hook_civicrm_optionValues.md b/docs/hooks/hook_civicrm_optionValues.md index e18196f7..a56ffce3 100644 --- a/docs/hooks/hook_civicrm_optionValues.md +++ b/docs/hooks/hook_civicrm_optionValues.md @@ -1,7 +1,7 @@ # hook_civicrm_optionValues !!! warning "Deprecated" - This hook is deprecated in 4.7 in favor of [hook_civicrm_fieldOptions](https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_fieldOptions). Use that instead for modifying all option lists, not limited to items in the civicrm_option_values table. + This hook is deprecated in 4.7 in favor of [hook_civicrm_fieldOptions](https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_fieldOptions). Use that instead for modifying all option lists, not limited to items in the `civicrm_option_values` table. ## Description @@ -11,13 +11,15 @@ hook to add/remove options from the option group. ## Definition - civicrm_optionValues(&$options, $name) +```php +hook_civicrm_optionValues(&$options, $name) +``` ## Parameters -- $options - the current set of options -- $name - the name of the option group +- array `$options` - the current set of options +- string `$name` - the name of the option group ## Returns -- null \ No newline at end of file +- `NULL` -- GitLab