You are here

function track_da_files_views_data_alter in Track da files 7

Implements hook_views_data_alter().

File

includes/views/track_da_files.views.inc, line 422
Views implementation for Track da files module.

Code

function track_da_files_views_data_alter(&$data) {

  // Declare how TDF relates to the file_managed table.
  $data['file_managed']['table']['join']['track_da_files'] = array(
    'left_table' => 'track_da_files_paths',
    'left_field' => 'fid',
    'type' => 'INNER',
    'field' => 'fid',
  );
}