Created
August 28, 2013 15:22
-
-
Save steffenr/6367276 to your computer and use it in GitHub Desktop.
Debugging views queries
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
<?php | |
function mymodule_views_pre_execute(&$view) { | |
switch ($view->name) { | |
case 'my_view_name': | |
dpq($view->build_info['query']); | |
break; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment