You are here

function google_analytics_counter_filter in Google Analytics Counter 6.2

Same name and namespace in other branches
  1. 6 google_analytics_counter.module \google_analytics_counter_filter()

File

./google_analytics_counter.module, line 535

Code

function google_analytics_counter_filter($op, $delta = 0, $format = -1, $text = '') {
  switch ($op) {
    case 'no cache':
      return FALSE;

    // FALSE means cache is used. See http://api.drupal.org/api/function/hook_filter/6
    case 'list':
      return array(
        0 => t('Google Analytics Counter Tag'),
      );
    case 'description':
      return t('Substitutes a special Google Analytics Counter Tag with the requested content.');
    case 'prepare':
      return $text;
    case 'process':

      # process it here........
      $text = replace_google_analytics_counter_tags($text);
      return $text;
  }
}