You are here

function commerce_file_views_data in Commerce File 8.2

Same name and namespace in other branches
  1. 7.2 includes/views/commerce_file.views.inc \commerce_file_views_data()
  2. 7 views/commerce_file.views.inc \commerce_file_views_data()

Implements hook_views_data().

File

./commerce_file.views.inc, line 13
Provide views data for commerce_file.module.

Code

function commerce_file_views_data() {
  $data['commerce_license']['download_limit'] = [
    'title' => t('Download limit'),
    'help' => t('Displays the download limit for a file.'),
    'field' => [
      'id' => 'download_limit',
    ],
  ];
  return $data;
}