Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-3.0
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Aug 2012 at 01:09 UTC
Updated:
18 Aug 2012 at 16:21 UTC
Hello I have two custom modules and these modules integrates views module (hook_views_data). But problem is, these modules uses one table that is same to both modules. I dont know How can I use one table for two custom views modules. In the dropdown menu of views, there are custom field groups but my custom modules create this:
Defaults: Add fields
Groups:
----------------------
| <All>
| Node
| Comment
| array
| first cust <---bad it is empy
| second cust <---- bad it is empty
-----------------------
When I select 'first cust' (first custom module views) there are no fields and 'second cust' (second custom module views) there are no fields too.
I am sorry, this is support request.
Thank for help M.
Comments
Comment #0.0
marinex commentedsmall correct
Comment #1
marinex commentedIt is necessary set property for aliasing table in the hook_views_data:
Comment #2
merlinofchaos commentedIt's also possible you'll need to have one of your modules use hook_views_data_alter() rather than hook_views_data() so that it doesn't overwrite the first module's data.
Comment #3.0
(not verified) commentedlittle correct