hook_civicrm_optionValues¶
Deprecated Hook
This hook was deprecated in 4.7 in favor of hook_civicrm_fieldOptions. Use hook_civicrm_fieldOptions instead for modifying all option lists, not limited to items in the civicrm_option_values table.
Summary¶
This hook is called after an option group is loaded, allowing you to add or remove options from the option group.
Notes¶
This hook is called after a option group is loaded. You can use this hook to add/remove options from the option group.
Use hook_civicrm_fieldOptions instead for modifying all option lists, not limited to items in the civicrm_option_values table.
Definition¶
hook_civicrm_optionValues(&$options, $groupName)
Parameters¶
- array
$options- the current set of options - string
$groupName- the name of the option group
Returns¶
NULL