/[drupal]/contributions/modules/omniture/omniture.module
ViewVC logotype

Diff of /contributions/modules/omniture/omniture.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.6, Tue Oct 7 03:03:36 2008 UTC revision 1.7, Wed Aug 19 09:07:52 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: omniture.module,v 1.5 2008/10/06 22:22:52 ultimateboy Exp $  // $Id: omniture.module,v 1.6 2008/10/07 03:03:36 ultimateboy Exp $
3  /*  /*
4   * @file   * @file
5   * Drupal Module: Omniture SiteCatalyst Stats   * Drupal Module: Omniture SiteCatalyst Stats
# Line 99  function omniture_footer($main = 0) { Line 99  function omniture_footer($main = 0) {
99        }        }
100      }      }
101    
102      $header = "<!-- SiteCatalyst code version: H.13. Copyright 1997-2007 Omniture, Inc. More info available at http://www.omniture.com -->\n";      $header = "<!-- SiteCatalyst code version: ";
103        $header .=  check_plain(variable_get("omniture_version", 'H.13.'));
104        $header .= " Copyright 1997-2009 Omniture, Inc. More info available at http://www.omniture.com -->\n";
105      $header .= "<script type=\"text/javascript\" language=\"JavaScript\" src=\"";      $header .= "<script type=\"text/javascript\" language=\"JavaScript\" src=\"";
106      $header .=  check_plain(variable_get("omniture_js_file_location", 'http://www.example.com/js/s_code_remote_h.js'));      $header .=  check_plain(variable_get("omniture_js_file_location", 'http://www.example.com/js/s_code_remote_h.js'));
107      $header .= "\"></script>\n";      $header .= "\"></script>\n";
# Line 112  function omniture_footer($main = 0) { Line 114  function omniture_footer($main = 0) {
114      $footer .= '//--></script><noscript><a href="http://www.omniture.com" title="Web Analytics"><img src="';      $footer .= '//--></script><noscript><a href="http://www.omniture.com" title="Web Analytics"><img src="';
115      $footer .= check_plain(variable_get("omniture_image_file_location", 'http://examplecom.112.2O7.net/b/ss/examplecom/1/H.13--NS/0')) .'"'."\n";      $footer .= check_plain(variable_get("omniture_image_file_location", 'http://examplecom.112.2O7.net/b/ss/examplecom/1/H.13--NS/0')) .'"'."\n";
116      $footer .= 'height="1" width="1" border="0" alt="" /></a></noscript><!--/DO NOT REMOVE/-->'."\n";      $footer .= 'height="1" width="1" border="0" alt="" /></a></noscript><!--/DO NOT REMOVE/-->'."\n";
117      $footer .= '<!-- End SiteCatalyst code version: H.13. -->'."\n";      $footer .= '<!-- End SiteCatalyst code version: ';
118        $footer .=  check_plain(variable_get("omniture_version", 'H.13.'));
119        $footer .= ' -->'."\n";
120    
121    
122      if ($omniture_hooked_vars = module_invoke_all('omniture_variables', $main)) {      if ($omniture_hooked_vars = module_invoke_all('omniture_variables', $main)) {
123        if (isset($omniture_hooked_vars['header'])) {        if (isset($omniture_hooked_vars['header'])) {
# Line 159  function omniture_admin_settings() { Line 164  function omniture_admin_settings() {
164        '#default_value' => check_plain(variable_get("omniture_image_file_location", 'http://examplecom.112.2O7.net/b/ss/examplecom/1/H.13--NS/0')),        '#default_value' => check_plain(variable_get("omniture_image_file_location", 'http://examplecom.112.2O7.net/b/ss/examplecom/1/H.13--NS/0')),
165    );    );
166    
167      $form['general']['omniture_version'] = array(
168          '#type' => 'textfield',
169          '#title' => t("SiteCatalyst version (used by omniture for debugging)"),
170          '#default_value' => check_plain(variable_get("omniture_version", 'H.13')),
171      );
172    
173    // Render the role overview.    // Render the role overview.
174    $result = db_query('SELECT * FROM {role} ORDER BY name');    $result = db_query('SELECT * FROM {role} ORDER BY name');
175    

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.2