function commerce_price_field_attach_update in Commerce Core 7
Implements hook_field_attach_update().
This hook is used to unserialize the price field's data array after it has been updated, because the data array is serialized before it is saved and must be unserialized for compatibility with API requests performed during the same request after the update occurs.
File
- modules/
price/ commerce_price.module, line 226 - Defines the Price field with widgets and formatters used to add prices with currency codes to various Commerce entities.
Code
function commerce_price_field_attach_update($entity_type, $entity) {
_commerce_price_field_unserialize_data($entity_type, $entity);
}