product_price_alterer_field.views.inc in Ubercart Discounts (Alternative) 6.2
File
product_price_alterer_field/product_price_alterer_field.views.inc
View source
<?php
function product_price_alterer_field_views_handlers() {
return array(
'info' => array(
'path' => drupal_get_path('module', 'product_price_alterer_field') . '/includes',
),
'handlers' => array(
'discounted_price_handler' => array(
'parent' => 'views_handler_field',
),
),
);
}
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;
}