This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file: MY_MODULE.views.inc | |
* | |
* Implementation of hook_views_query_alter(). | |
* 1. Resolves conflict between contextual filter and regular filter (topic id, sub topic). | |
* Both refer to same database field, so merge them in one 'where' clause instead of two that Views comes up with. | |
* 2. By default, show all results from a topic and its sub-topics. | |
* [If a document is tagged with a sub-topic but not its parent topic, it was not shown in the default result.] | |
* @param view $view | |
* @param views_plugin_query_default $query |