function commerce_license_information_checkout_form_submit in Commerce License 7
Checkout pane callback: license edit pane submit callback.
File
- includes/
commerce_license.checkout_pane.inc, line 56 - Checkout pane callbacks.
Code
function commerce_license_information_checkout_form_submit($form, &$form_state, $checkout_pane, $order) {
$licenses = commerce_license_get_order_licenses($order, TRUE);
foreach ($licenses as $license) {
$license_form = $form[$checkout_pane['pane_id']][$license->license_id];
$license
->formSubmit($license_form, $form_state);
$license
->save();
}
}