2

I would like to get the current values from an exposed filter in hook_views_pre_view().

For example, if the input filter has some value I would like to change de pager: number of items, the problem is how to get this value from views without using $_GET because I don't think it will work with views ajax.

What is the right way to get current exposed filters values from a view?

1 Answer 1

1

I've found it, there is a views method:

$input = $view->get_exposed_input();
1
  • I have the same problem, but this solution does not work as $input is always empty. Any ideas?
    – user5950
    Nov 21, 2015 at 1:49

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.