function uc_product_views_handler_buy_it_now_button in Ubercart 5
Return a formatted buy it now button to display in the View.
1 string reference to 'uc_product_views_handler_buy_it_now_button'
- uc_product_views_tables in uc_product/
uc_product.module - Implementation of hook_views_tables()
File
- uc_product/
uc_product.module, line 1275 - The product module for Ubercart.
Code
function uc_product_views_handler_buy_it_now_button($fieldinfo, $fielddata, $value, $data) {
$product = node_load($data->nid);
return drupal_get_form('uc_catalog_buy_it_now_form_' . $data->nid, $product);
}