Body: <p>I would like to add one of the logging tables to Drupal Views.  The list of CiviCRM tables that is provided does not include these tables. I've tried adding one in Drupal's settings.php but it doesn't appear in Views. For security &amp; GDPR purposes it would be very useful to add these tables.  Can this be done and how?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-04-14T21:21:10.297Z
Comments.Text: would this help? https://www.drupal.org/forum/support/module-development-and-code-questions/2019-03-27/how-to-add-a-view-for-a-custom-table
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-04-15T07:40:08.867Z
Comments.Text: Thanks, but for the first module it appears that the the custom table has to be in the Drupal database, and the second is for Drupal 8.
Comments.UserDisplayName: Andy Clark
Tags: <drupal-views>
Title: How to add logging table to Views?
ThreadText: # How to add logging table to Views?
  
  (Asked by: username_0 on 2022-04-14)
  
  I would like to add one of the logging tables to Drupal Views. The list of CiviCRM tables that is provided does not include these tables. I've tried adding one in Drupal's settings.php but it doesn't appear in Views. For security & GDPR purposes it would be very useful to add these tables. Can this be done and how?
  
  **Tags:** drupal-views
  
  > **Comments:**
  > **username_1**: would this help? https://www.drupal.org/forum/support/module-development-and-code-questions/2019-03-27/how-to-add-a-view-for-a-custom-table  
  > **username_0**: Thanks, but for the first module it appears that the the custom table has to be in the Drupal database, and the second is for Drupal 8.  
  
  ---
  
  ## 0 answers
  
  