Created
September 4, 2012 09:01
-
-
Save ramlev/3618789 to your computer and use it in GitHub Desktop.
hook_views_pre_execute() - comment the query
This file contains hidden or 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
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