Top menu

Add join with custom database table in hook_views_query_alter()

In this example i would add a join to the database table “node” with an other database table “event_submissions” which i created in my custom module, so i will add a hook_views_query_alter() function in mymodule.module file :

This code allows me to get the events that the current user had participated.

No comments yet.

Leave a Reply