You are here

function payment_ubercart_views_data in Payment for Ubercart 7

Same name and namespace in other branches
  1. 7.2 payment_ubercart.views.inc \payment_ubercart_views_data()

Implements hook_views_data().

File

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

Code

function payment_ubercart_views_data() {
  $data['payment_ubercart'] = array(
    'table' => array(
      'base' => array(
        'title' => t('Payments and Ubercart orders'),
      ),
      'group' => t('Payment'),
      'join' => array(
        'payment' => array(
          'left_field' => 'pid',
          'field' => 'pid',
        ),
        'uc_orders' => array(
          'left_field' => 'order_id',
          'field' => 'uc_order_id',
        ),
      ),
    ),
  );
  return $data;
}