function product_price_alterer_field_views_data in Ubercart Discounts (Alternative) 7.2
Same name and namespace in other branches
- 6.2 product_price_alterer_field/product_price_alterer_field.views.inc \product_price_alterer_field_views_data()
Implementation of hook_views_data() Register all of the basic handlers views uses.
File
- product_price_alterer_field/
product_price_alterer_field.views.inc, line 29 - Integrates product_price_alterer module with views module.
Code
function product_price_alterer_field_views_data() {
$data['uc_products']['discounted_price'] = array(
'title' => t('Discounted price'),
'help' => t('Price after discounts (if any exist).'),
'field' => array(
'handler' => 'discounted_price_handler',
'click sortable' => FALSE,
'table' => 'node',
'additional fields' => array(
'nid' => array(
'table' => 'node',
'field' => 'nid',
),
),
),
);
return $data;
}