function payment_ubercart_views_data_alter in Payment for Ubercart 7.2
Same name and namespace in other branches
- 7 payment_ubercart.views.inc \payment_ubercart_views_data_alter()
Implements hook_views_data_alter().
File
- ./
payment_ubercart.views.inc, line 37 - Views integration.
Code
function payment_ubercart_views_data_alter(&$data) {
$data['payment']['table']['join']['uc_orders'] = array(
'left_table' => 'payment_ubercart',
'left_field' => 'pid',
'field' => 'pid',
);
$data['uc_orders']['table']['join']['payment'] = array(
'left_table' => 'payment_ubercart',
'left_field' => 'uc_order_id',
'field' => 'order_id',
);
}