From ad78582a163e2822f612800328888b7ea90ef005 Mon Sep 17 00:00:00 2001
From: Jaime Herencia <jherencia@360690.no-reply.drupal.org>
Date: Mon, 17 Sep 2012 13:24:47 +0200
Subject: [PATCH] Issue [#1645716] by jherencia: Notices when taxonomy module
 is not enabled.

---
 plugins/entity/taxonomy_term.inc | 28 +++++++++++++++-------------
 1 file changed, 15 insertions(+), 13 deletions(-)

diff --git a/plugins/entity/taxonomy_term.inc b/plugins/entity/taxonomy_term.inc
index d85d167..90ea3a7 100644
--- a/plugins/entity/taxonomy_term.inc
+++ b/plugins/entity/taxonomy_term.inc
@@ -4,16 +4,18 @@
  * Definition of the taxonomy term plugin.
  */
 
-$plugin = array(
-  'handler' => 'PanelizerEntityTaxonomyTerm',
-  'entity path' => 'taxonomy/term/%taxonomy_term',
-  'hooks' => array(
-    'menu' => TRUE,
-    'admin_paths' => TRUE,
-    'permission' => TRUE,
-    'panelizer_defaults' => TRUE,
-    'default_page_manager_handlers' => TRUE,
-    'form_alter' => TRUE,
-    'views_data_alter' => TRUE,
-  ),
-);
+if (module_exists('taxonomy')) {
+  $plugin = array(
+    'handler' => 'PanelizerEntityTaxonomyTerm',
+    'entity path' => 'taxonomy/term/%taxonomy_term',
+    'hooks' => array(
+      'menu' => TRUE,
+      'admin_paths' => TRUE,
+      'permission' => TRUE,
+      'panelizer_defaults' => TRUE,
+      'default_page_manager_handlers' => TRUE,
+      'form_alter' => TRUE,
+      'views_data_alter' => TRUE,
+    ),
+  );
+}
-- 
1.7.12

