function uc_wishlist_add_to_wishlist_submit in UC Wish List 8
Same name and namespace in other branches
- 6 uc_wishlist.module \uc_wishlist_add_to_wishlist_submit()
- 7 uc_wishlist.module \uc_wishlist_add_to_wishlist_submit()
Submit handler of the uc_wishlist_add_to_wishlist.
See comment for uc_wishlist_form_alter: This function handles submission of uc_product_add_to_cart_form and differentiates between 'add to cart' and 'add to wish list' functions.
1 string reference to 'uc_wishlist_add_to_wishlist_submit'
- uc_wishlist_form_alter in ./
uc_wishlist.module - Implements hook_form_alter().
File
- ./
uc_wishlist.module, line 186 - Allows users to create public shopping/wish lists.
Code
function uc_wishlist_add_to_wishlist_submit($form, FormState $form_state) {
// Add the item to the user's wish list.
uc_wishlist_add_item($form_state
->getValue('nid'), $form_state
->getValue('qty'));
}