diff --git a/plugins/content_types/flag_link/flag_link.inc b/plugins/content_types/flag_link/flag_link.inc
index 33de132..fdbe5e2 100644
--- a/plugins/content_types/flag_link/flag_link.inc
+++ b/plugins/content_types/flag_link/flag_link.inc
@@ -3,12 +3,14 @@
 /**
  * Plugin definition.
  */
-$plugin = array(
-  'title' => t('Flag link'),
-  'description' => t('Add a flag link of a certain flag type for entities.'),
-  'defaults' => array('flag_name' => ''),
-  'content type' => 'flag_flag_link_content_type_info',
-);
+if (module_exists('entity')) {
+  $plugin = array(
+    'title' => t('Flag link'),
+    'description' => t('Add a flag link of a certain flag type for entities.'),
+    'defaults' => array('flag_name' => ''),
+    'content type' => 'flag_flag_link_content_type_info',
+  );
+}
 
 /**
  * Get the entity content type info.
