You are here

function analytics_file_url_alter in Analytics 7

Implements hook_file_uri_alter().

File

./analytics.module, line 229

Code

function analytics_file_url_alter(&$uri) {
  $cached_urls =& drupal_static(__FUNCTION__);
  if (!isset($cached_urls)) {
    $cached_urls = variable_get('analytics_cached_urls', array());
  }
  if (isset($cached_urls[$uri])) {
    $uri = $cached_urls[$uri];
  }
}