You are here

function search_get_keys in Drupal 5

Same name and namespace in other branches
  1. 4 modules/search.module \search_get_keys()
  2. 6 modules/search/search.module \search_get_keys()

Helper function for grabbing search keys.

2 calls to search_get_keys()
search_menu in modules/search/search.module
Implementation of hook_menu().
search_view in modules/search/search.module
Menu callback; presents the search form and/or search results.

File

modules/search/search.module, line 881
Enables site-wide keyword searching.

Code

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'];
}