2

I have a view in which I want to have a link that passes the current exposed filters values through to another custom page (not a view).

For example if the "Day One" checkbox is checked I want my link to be able to reflect this checkboxes value.

<a href="page?checked=day+one">Link</a>

Is there some form of array where all exposed values are stored when a view is shown? I can't seem to find one

  • exposed filters are set as variables in the url, eg, something along the lines of www.example.com/view-url?filter=value and thus are available to you in $_GET – Jimajamma Jan 13 '14 at 14:44
  • Should have added that the view is Ajax so this is not the case – Daniel Waters Jan 13 '14 at 14:45
2

I got what I needed after reading a couple of views docs.

 $view = views_get_current_view();
 $view->exposed_input['filter_name']

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.