function hook_views_query_alter in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 8.3 views.api.php \hook_views_query_alter()
- 6.3 docs/docs.php \hook_views_query_alter()
- 7.3 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()
- view::build in includes/
view.inc - Build the query for the view.
File
- docs/
docs.php, line 680 - This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.
Code
function hook_views_query_alter(&$view, &$query) {
// example code here
}