You are here

function commerce_wishlist_views_data_alter in Commerce Wishlist 8.3

Same name and namespace in other branches
  1. 7.3 includes/views/commerce_wishlist.views.inc \commerce_wishlist_views_data_alter()

Implements hook_views_data_alter().

File

./commerce_wishlist.module, line 160
Defines the Wishlist entity and associated features.

Code

function commerce_wishlist_views_data_alter(array &$data) {
  $data['commerce_order_item']['move_to_wishlist']['field'] = [
    'title' => t('Move/copy to wishlist button'),
    'help' => t('Adds a button for moving or copying the order item to the wishlist.'),
    'id' => 'commerce_wishlist_order_item_move_to_wishlist',
  ];
}