function uc_ajax_cart_remove_button in Ubercart AJAX Cart 6
1 string reference to 'uc_ajax_cart_remove_button'
- uc_ajax_cart_form_alter in ./
uc_ajax_cart.module - override hook_form_alter
File
- ./
uc_ajax_cart.module, line 241
Code
function uc_ajax_cart_remove_button($fid, $cartItem, $cartPosition) {
$form = array(
'#action' => 'cart/ajax/view',
'nid' => array(
'#type' => 'hidden',
'#value' => $cartItem->nid,
),
'key' => array(
'#type' => 'hidden',
'#value' => $cartPosition,
),
'data' => array(
'#type' => 'hidden',
'#value' => drupal_to_js((array) $cartItem->data),
),
'qty' => array(
'#type' => 'hidden',
'#value' => 0,
),
'quiet' => array(
'#type' => 'hidden',
'#value' => true,
),
'remove' => array(
'#type' => 'button',
'#value' => 'remove',
),
);
return $form;
}