Forked from
Documentation / Docs / Developer Documentation
3122 commits behind the upstream repository.
-
Sean Madsen authoredSean Madsen authored
hook_civicrm_optionValues.md 620 B
hook_civicrm_optionValues
!!! warning "Deprecated"
This hook is deprecated in 4.7 in favor of hook_civicrm_fieldOptions. Use that instead for modifying all option lists, not limited to items in the civicrm_option_values
table.
Description
This hook is called after a option group is loaded. You can use this hook to add/remove options from the option group.
Definition
hook_civicrm_optionValues(&$options, $name)
Parameters
- array
$options
- the current set of options - string
$name
- the name of the option group
Returns
NULL