? 343086_taxonomy_optional.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 6 Dec 2008 22:17:12 -0000 @@ -62,7 +62,7 @@ function omniture_footer($main = 0) { $codesnippet = variable_get('omniture_codesnippet', ''); // Taxonomy specific stuff - only for nodes - if ($node = menu_get_object()) { + if (module_exists('taxonomy') && $node = menu_get_object()) { $tax = $node->taxonomy; $vocabularies = taxonomy_get_vocabularies(); @@ -187,14 +187,16 @@ function omniture_admin_settings() { ); // Allow setting a vocabulary into a variable - $vocabularies = taxonomy_get_vocabularies(); - foreach ($vocabularies as $vid => $vocab) { - if ($vocab->tags == 0) { - $form['vocabs']["omniture_vocabvidvar_{$vocab->vid}"] = array( - '#type' => 'textfield', - '#title' => t('Variable for %vocab', array('%vocab' => $vocab->name)), - '#default_value' => variable_get("omniture_vocabvidvar_{$vocab->vid}", FALSE), - ); + if (module_exists('taxonomy')) { + $vocabularies = taxonomy_get_vocabularies(); + foreach ($vocabularies as $vid => $vocab) { + if ($vocab->tags == 0) { + $form['vocabs']["omniture_vocabvidvar_{$vocab->vid}"] = array( + '#type' => 'textfield', + '#title' => t('Variable for %vocab', array('%vocab' => $vocab->name)), + '#default_value' => variable_get("omniture_vocabvidvar_{$vocab->vid}", FALSE), + ); + } } }