You are here

function uc_attribute_add_to_cart_data in Ubercart 6.2

Same name and namespace in other branches
  1. 5 uc_attribute/uc_attribute.module \uc_attribute_add_to_cart_data()

Stores the customer's choices in the cart.

File

uc_attribute/uc_attribute.module, line 510

Code

function uc_attribute_add_to_cart_data($form_values) {
  if (isset($form_values['attributes'])) {
    return array(
      'attributes' => $form_values['attributes'],
    );
  }
  else {
    return array(
      'attributes' => array(),
    );
  }
}