I would like to see view's sql query that is executed in runtime. I found this method in google, hook_views_pre_execute
, but I am really beginner in drupal. Where I have to apply this method, when I put this method as project_views_pre_execute
in template.php
, nothing is shown and I don't know why, is it needed to write it in custom module?
Any suggestion is greatly appreciated.