Should the optionvalue.get fetch altered labels (and/or values) if civicrm_fieldOption is being used or not ?
I have a situation where i have to replace dynamically some labels (and add some values) depending on an external file on a select list.
I do this by using the civicrm_fieldOption
hook in my extension. However, when I call civicrm_api3('OptionValue', 'get')
, it returns the actual unmodified values of that select field.
What should be the expected behaviour for the Optionvalue.get call ? Return the altered labels and added values or not ?
PS. This is not actually a bug report, it's mostly a clarification on the behaviour of the api call.