You are here

function payment_commerce_views_data_alter in Payment for Drupal Commerce 7

Same name and namespace in other branches
  1. 7.2 views/payment_commerce.views.inc \payment_commerce_views_data_alter()

Implements hook_views_data_alter().

File

views/payment_commerce.views.inc, line 37
Views integration.

Code

function payment_commerce_views_data_alter(&$data) {
  $data['payment']['table']['join']['commerce_payment_transaction'] = array(
    'left_table' => 'payment_commerce',
    'left_field' => 'pid',
    'field' => 'pid',
  );
  $data['commerce_payment_transaction']['table']['join']['payment'] = array(
    'left_table' => 'payment_commerce',
    'left_field' => 'transaction_id',
    'field' => 'transaction_id',
  );
}