You are here

function analytics_url in Analytics 7

3 calls to analytics_url()
theme_analytics_google_ga_js in analytics_google/analytics_google.theme.inc
theme_analytics_google_universal_js in analytics_google/analytics_google.theme.inc
theme_analytics_piwik_js in analytics_piwik/analytics_piwik.theme.inc

File

./analytics.module, line 241

Code

function analytics_url($url, $relative = TRUE) {
  $url = file_create_url($url);
  if ($relative) {
    $url = preg_replace('/^https?:/', '', $url);
  }
  return $url;
}