Skip to content

Instantly share code, notes, and snippets.

@ramlev
Created September 4, 2012 09:01
Show Gist options
  • Save ramlev/3618789 to your computer and use it in GitHub Desktop.
Save ramlev/3618789 to your computer and use it in GitHub Desktop.
hook_views_pre_execute() - comment the query
function my_module_views_pre_execute(&$view) {
$view->build_info['query'] = "
-- NOTE: view is overwritten in my_module_views_pre_execute()
SELECT ......
FROM ....
";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment