function commerce_option_save in Commerce Product Option 7.2
Same name and namespace in other branches
- 7 commerce_option.module \commerce_option_save()
Save a commerce option.
3 calls to commerce_option_save()
- commerce_option_add_to_cart_submit in ./
commerce_option.module - Cart submit callback function. This is required to create / update the option related to the line item.
- commerce_option_form_submit in ./
commerce_option.admin.inc - Commerce Option form submit handler
- commerce_option_set_form_submit in ./
commerce_option.admin.inc - Commerce Option Set form submit handler.
File
- ./
commerce_option.module, line 322
Code
function commerce_option_save($option) {
$option->changed = REQUEST_TIME;
return entity_save('commerce_option', $option);
}