You are here

function google_adwords_path_get_path_codes in Google AdWords Conversion Tracking 7.2

Get all Google Adwords unique codes after filtering for the current path.

1 call to google_adwords_path_get_path_codes()
google_adwords_path_page_build in modules/google_adwords_path/google_adwords_path.module
Implements hook_page_build().

File

modules/google_adwords_path/google_adwords_path.module, line 80
Module file for the Google Adwords Path Submodule.

Code

function google_adwords_path_get_path_codes() {
  $codes =& drupal_static(__FUNCTION__);
  if (!$codes) {
    $codes = _google_adwords_path_load_codes();

    // Allow other modules to alter the codes.
    drupal_alter('google_adwords_path', $codes);
  }
  return $codes;
}