function download_count_views_data_alter in Download Count 8
Same name and namespace in other branches
- 6.2 includes/download_count.views.inc \download_count_views_data_alter()
- 7.3 includes/download_count.views.inc \download_count_views_data_alter()
- 7.2 includes/download_count.views.inc \download_count_views_data_alter()
Implements hook_views_data_alter().
File
- ./
download_count.views.inc, line 159 - Provide views data for the download_count.module.
Code
function download_count_views_data_alter(&$data) {
// Join for files table.
$data['file_managed']['table']['join']['download_count'] = [
'left_field' => 'fid',
'field' => 'fid',
];
}