You are here

function basic_cart_checkout_form_validate in Basic cart 7.2

Same name and namespace in other branches
  1. 7 basic_cart.cart.inc \basic_cart_checkout_form_validate()

Checkout form validation.

File

./basic_cart.cart.inc, line 394
Basic cart shopping cart implementation functions.

Code

function basic_cart_checkout_form_validate($form, &$form_state) {
  if (!valid_email_address($form_state['values']['basic_cart_checkout_email'])) {
    form_set_error('basic_cart_checkout_email', t('Please enter a valid email address.'));
  }
}