You are here

function commerce_webform_line_item_add_form_submit in Commerce Webform 8

Same name and namespace in other branches
  1. 7.2 commerce_webform.module \commerce_webform_line_item_add_form_submit()
  2. 7 commerce_webform.module \commerce_webform_line_item_add_form_submit()

Adds the selected product information to a line item added via a line item manager widget.

Parameters

commerce_line_item $line_item: The newly created line item object.

array $element: The array representing the widget form element.

array $form_state: The present state of the form upon the latest submission.

array $form: The actual form array.

Return value

string|NULL NULL if all is well or an error message if something goes wrong.

File

./commerce_webform.module, line 172
Commerce Webform module file

Code

function commerce_webform_line_item_add_form_submit(&$line_item, $element, &$form_state, $form) {
  return commerce_product_line_item_add_form_submit($line_item, $element, $form_state, $form);
}