You are here

function payment_commerce_views_data 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()

Implements hook_views_data().

File

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

Code

function payment_commerce_views_data() {
  $data['payment_commerce'] = array(
    'table' => array(
      'base' => array(
        'title' => t('Payments and Commerce transactions'),
      ),
      'group' => t('Payment'),
      'join' => array(
        'payment' => array(
          'left_field' => 'pid',
          'field' => 'pid',
        ),
        'commerce_payment_transaction' => array(
          'left_field' => 'transaction_id',
          'field' => 'transaction_id',
        ),
      ),
    ),
  );
  return $data;
}