Add relationship to node view I recently installed the &quot;simplenews&quot; and &quot;simplenews_scheduler&quot; modules. The first module generates a view where you can see the newsletters.
My idea was to create a relationship in that view to gather the data from the &quot;simplenews_scheduler&quot; table to know if a newsletter has an active schedule.

I tried the &quot;views_data&quot; and &quot;views_data_alter&quot; hooks but I can't add the &quot;activated&quot; field of the &quot;simplenews_scheduler&quot; table. The base table of the view is &quot;node_field_data&quot;

Is it possible to do what I'm trying to do? And if so, can someone tell me what I should do?
Thank you very much.
To create a view from a database table instead of using hook_views_data you can use Views Custom Table module:

View custom table module provide you functionality to integrate your custom table data to views, and access all it's column in views. This module use hook_view_data to add custom tables in views.

it's easy just follow the 7 steps in How to use section in module page.