I have a Search view that uses the Filter: Search terms.

I've tried using <?php print arg(0); ?> in the header, but that only returns the view url (search).

How do I get the value of the query key /search?keys=term to be able to use it as a token in a Global: Text area in the Header?

My header title would be something like : Results for [search term]

1 Answer 1


$_GET['keys'] should give you the term value.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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