| 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 |
| 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"; |
| 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'])) { |
| 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 |
|
|