search_get_keys

Definition

search_get_keys()
search/search.module, line 881

Description

Helper function for grabbing search keys.

Code

<?php
function search_get_keys() {
  // Extract keys as remainder of path
  // Note: support old GET format of searches for existing links.
  $path = explode('/', $_GET['q'], 3);
  return count($path) == 3 ? $path[2] : $_REQUEST['keys'];
}
?>