function commerce_license_information_checkout_form_validate in Commerce License 7
Checkout pane callback: License edit pane validate.
File
- includes/
commerce_license.checkout_pane.inc, line 39 - Checkout pane callbacks.
Code
function commerce_license_information_checkout_form_validate($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
->formValidate($license_form, $form_state);
}
$form_errors =& drupal_static('form_set_error', array());
if (empty($form_state['errors']) && empty($form_errors)) {
return TRUE;
}
return FALSE;
}