/[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.7, Wed Aug 19 09:07:52 2009 UTC revision 1.8, Wed Aug 19 09:16:21 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: omniture.module,v 1.6 2008/10/07 03:03:36 ultimateboy Exp $  // $Id: omniture.module,v 1.7 2009/08/19 09:07:52 cytefx Exp $
3  /*  /*
4   * @file   * @file
5   * Drupal Module: Omniture SiteCatalyst Stats   * Drupal Module: Omniture SiteCatalyst Stats
# Line 62  function omniture_footer($main = 0) { Line 62  function omniture_footer($main = 0) {
62      $codesnippet = variable_get('omniture_codesnippet', '');      $codesnippet = variable_get('omniture_codesnippet', '');
63    
64      // Taxonomy specific stuff - only for nodes      // Taxonomy specific stuff - only for nodes
65      if ($node = menu_get_object()) {      if (module_exists('taxonomy') && $node = menu_get_object()) {
66        $tax = $node->taxonomy;        $tax = $node->taxonomy;
67    
68        $vocabularies = taxonomy_get_vocabularies();        $vocabularies = taxonomy_get_vocabularies();
# Line 198  function omniture_admin_settings() { Line 198  function omniture_admin_settings() {
198    );    );
199    
200    // Allow setting a vocabulary into a variable    // Allow setting a vocabulary into a variable
201    $vocabularies = taxonomy_get_vocabularies();    if (module_exists('taxonomy')) {
202    foreach ($vocabularies as $vid => $vocab) {      $vocabularies = taxonomy_get_vocabularies();
203      if ($vocab->tags == 0) {      foreach ($vocabularies as $vid => $vocab) {
204        $form['vocabs']["omniture_vocabvidvar_{$vocab->vid}"] = array(        if ($vocab->tags == 0) {
205          '#type' => 'textfield',          $form['vocabs']["omniture_vocabvidvar_{$vocab->vid}"] = array(
206          '#title' => t('Variable for %vocab', array('%vocab' => $vocab->name)),            '#type' => 'textfield',
207          '#default_value' => variable_get("omniture_vocabvidvar_{$vocab->vid}", FALSE),            '#title' => t('Variable for %vocab', array('%vocab' => $vocab->name)),
208        );            '#default_value' => variable_get("omniture_vocabvidvar_{$vocab->vid}", FALSE),
209            );
210          }
211      }      }
212    }    }
213    

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

  ViewVC Help
Powered by ViewVC 1.1.2