0

I am just looking for altering select query, created by any view just before its execute. For e.g. I want to add some manual filter which I can't add from Views' UI.

  • use hook_views_query_alter() to alter the select query. – DRUPWAY Oct 14 '14 at 11:21
1

You are likely looking to use hook_view_query_alter, additionally you might want to look into some related questions on Drupal answers How do I use hook_views_query_alter()?.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.