I need to preprocess a function from the module "commerce pricing attributes".
Here is the function :
function commerce_pricing_attributes_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) {...}
I don't know how to preprocess this (if it's possible).
This function create some element in the back-office and the thing I want to do is to give a color to these elements in function of the type of the option the element is. If it's an insurance option there is a color, if it's a room option another color.
I try to do this with an alter like this :
function my_module_field_widget_commerce_pricing_attributes_custom_widget_form_alter(&$element, &$form_state, $context) {...}
But I can't have all the information I need (the type of the option).
Is there any way to preprocess the function so I can use all the values they use in their module ?