? 327757_allow_js_vars.1.patch
Index: omniture.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/omniture/omniture.module,v
retrieving revision 1.6
diff -u -p -r1.6 omniture.module
--- omniture.module	7 Oct 2008 03:03:36 -0000	1.6
+++ omniture.module	29 Oct 2008 18:31:56 -0000
@@ -9,7 +9,7 @@
  *
  * @author: Greg Knaddison
  * @co-maintainer: Matthew Tucker
- * 
+ *
  */
 
 function omniture_help($path, $arg) {
@@ -57,7 +57,7 @@ function omniture_footer($main = 0) {
 
   // Don't track page views in the admin sections, or for certain roles
   if (arg(0) != 'admin' && $track > 0) {
-    
+
     // Add any custom code snippets if specified
     $codesnippet = variable_get('omniture_codesnippet', '');
 
@@ -95,7 +95,7 @@ function omniture_footer($main = 0) {
 
     if (isset($omniture_vocab_vars)) {
       foreach ($omniture_vocab_vars as $variable => $value) {
-        $extra_variables_formatted .= "\n". $variable .'="'. $value .'";';
+        $extra_variables_formatted .= "\n". $variable .'='. $value .';';
       }
     }
 
@@ -120,7 +120,7 @@ function omniture_footer($main = 0) {
       }
       if (isset($omniture_hooked_vars['variables'])) {
         foreach ($omniture_hooked_vars['variables'] as $k => $v) {
-          $extra_variables_formatted .= "$k=\"$v\";\n";
+          $extra_variables_formatted .= "$k=$v;\n";
         }
       }
       if (isset($omniture_hooked_vars['footer'])) {
@@ -205,13 +205,13 @@ function omniture_admin_settings() {
         '#collapsed' => TRUE,
         '#description' => t('You can add custom SiteCatalyst code here.')
   );
-  
+
   $form['advanced']['omniture_codesnippet'] = array(
       '#type' => 'textarea',
       '#title' => t('JavaScript Code'),
       '#default_value' => variable_get('omniture_codesnippet', ''),
       '#rows' => 15,
-      '#description' => t('Paste <a href="@snippets">custom code snippets here</a>. These will be added to every page that SiteCatalyst appears on. For help with this feature see the <a href="@blog">cutroni.com blog</a>. <strong>Do not include the &lt;script&gt; tags</strong>, and always end your code with a semicolon (;).', array('@snippets' => 'http://drupal.org/node/39282', '@blog' => 'http://cutroni.com/blog/') )   
+      '#description' => t('Paste <a href="@snippets">custom code snippets here</a>. These will be added to every page that SiteCatalyst appears on. For help with this feature see the <a href="@blog">cutroni.com blog</a>. <strong>Do not include the &lt;script&gt; tags</strong>, and always end your code with a semicolon (;).', array('@snippets' => 'http://drupal.org/node/39282', '@blog' => 'http://cutroni.com/blog/') )
   );
 
   return system_settings_form($form);
@@ -228,10 +228,10 @@ function omniture_admin_settings() {
 <!-- SITECATALYST CODE -->
 <script language="javascript" src="/js/s_code_remote_h.js" type="text/javascript"></script>
 <script language="javascript" type="text/javascript">
-<!-- 
+<!--
 // Copyright 1997-2004 Omniture, Inc.
 
-// PAGE SPECIFIC VIA ISOL G & H 
+// PAGE SPECIFIC VIA ISOL G & H
 
 var s_pageName='Omniture: Homepage';
 var s_channel='Home';
@@ -240,7 +240,7 @@ s.pageName='Omniture: Homepage';
 s.channel='Home';
 s.prop6='English';
 
-// END PAGE SPECIFIC VIA ISOL 
+// END PAGE SPECIFIC VIA ISOL
 
 // SiteCatalyst code version: G.7.
 var s_server="www.omniture.com"
@@ -262,16 +262,16 @@ var s_server="www.omniture.com"
   var s_eVar13 = ""
   var s_eVar14 = ""
   var s_eVar15 = ""
-  // END G.7 CODE IMPLEMENTATION 
-  
-  // H.1 CODE BEGIN 
+  // END G.7 CODE IMPLEMENTATION
+
+  // H.1 CODE BEGIN
   s.server="www.omniture.com"
   s.campaign=""
   s.events=""
   s.products=""
-  s.prop1="Non-Customer" 
+  s.prop1="Non-Customer"
   s.prop3="Natural Search (All Other Engines)|"+s.pageName
-  s.prop5="Untracked" 
+  s.prop5="Untracked"
   s.prop14=""
   s.prop15=""
   s.prop16=""
@@ -300,8 +300,8 @@ var s_server="www.omniture.com"
   s.eVar13=""
   s.eVar28=""
   s.eVar33=""
-  // H.1 CODE END 
-  
+  // H.1 CODE END
+
   var s_code=s.t();if(s_code)document.write(s_code)
          //-->
          </script>
@@ -310,7 +310,7 @@ var s_server="www.omniture.com"
          <img src="http://omniturecom.112.2O7.net/b/ss/omniturecom/1/H.7--NS/0" height="1" width="1" border="0" alt="" />
          </noscript>
 
-         
+
          <!-- BANNER TRACKING IF ANY -->
          <script language="javascript" src="/js/functions.js"></script>
          <script language="javascript" src="/js/banner_track.js"></script>
