There are several fields I expect to be able to change in the buildAmount hook that just won't change for me. One example:
function myext_civicrm_buildAmount($pageType, &$form, &$amount) { $feeBlock =& $amount; foreach ( $feeBlock as &$fee ) { if ( !is_array( $fee['options'] ) ) { continue; } // My debug-to-file function prints the original value as expected // fdebug($fee['help_post']); $fee['help_post'] = 'New help text'; // My debug-to-file function prints the new value as expected // fdebug($fee['help_post']); // But the value in the price set, when rendered, does not change } }
The help_post text remains as originally set in the price set. Why?