function hook_views_query_alter
Same name in other branches
- 7.x-3.x views.api.php \hook_views_query_alter()
Stub hook documentation
This hook should be placed in MODULENAME.views.inc and it will be auto-loaded. This must either be in the same directory as the .module file or in a subdirectory named 'includes'.
Related topics
1 invocation of hook_views_query_alter()
- views_plugin_query_default::alter in plugins/
views_plugin_query_default.inc - Let modules modify the query just prior to finalizing it.
File
-
docs/
docs.php, line 726
Code
function hook_views_query_alter(&$view, &$query) {
// example code here
}