0

We have a db table from custom module which has fields entity_id and entity_type. I need to exposed this table to views using hook_views_data() and it should be possible to join with this table within any entity based views. So, join would form based on table fields entity_id and entity_type.

Is that possible?

Or may be we need to expose this table as multiple 'virtual' tables, one for each entity type. But no idea if that can be done either.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.