function sbp_ga_get_custom_keys in Search by Page 6
Figures out the search keys from the GET/REQUEST globals.
1 call to sbp_ga_get_custom_keys()
- sbp_ga_preprocess_page in ./
sbp_ga.module  - Implementation of hook_preprocess_page().
 
File
- ./
sbp_ga.module, line 14  - Module file for Search by Page Google Analtics Integration.
 
Code
function sbp_ga_get_custom_keys() {
  static $return;
  if (!isset($return)) {
    // Extract keys as remainder of path
    // Note: support old GET format of searches for existing links.
    $path = explode('/', $_GET['q'], 3);
    $keys = empty($_REQUEST['keys']) ? '' : $_REQUEST['keys'];
    $return = count($path) == 2 ? $path[1] : $keys;
  }
  return $return;
}