You are here

function commerce_recurring_ui_views_data in Commerce Recurring Framework 7.2

Implements hook_views_data()

File

commerce_recurring_ui/includes/views/commerce_recurring_ui.views.inc, line 10

Code

function commerce_recurring_ui_views_data() {
  $data = array();
  $data['commerce_recurring']['operations'] = array(
    'field' => array(
      'title' => t('Operations links'),
      'help' => t('Display all the available operations links for the order.'),
      'handler' => 'commerce_recurring_handler_field_order_operations',
    ),
  );

  // Show the operations using CTools dropbutton menu.
  $data['commerce_recurring']['operations_dropbutton'] = array(
    'title' => t('Operations'),
    'help' => t('Show the commerce recurring operation links using dropbutton menu.'),
    'field' => array(
      'handler' => 'commerce_recurring_ui_handler_field_operations_dropbutton',
    ),
    // This is a dummy field, so attach it to the ID column.
    'real field' => 'id',
  );
  return $data;
}