From 32983ddd35c1d7e6e464d212df8fcddf4f3f7a19 Mon Sep 17 00:00:00 2001
From: Joachim Noreiko <joachim@107701.no-reply.drupal.org>
Date: Wed, 23 Mar 2011 19:59:02 +0000
Subject: [PATCH] Added hook_enable().

---
 profile2.install |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/profile2.install b/profile2.install
index 4d370c0..f9fb98d 100644
--- a/profile2.install
+++ b/profile2.install
@@ -26,6 +26,15 @@ function profile2_install() {
 }
 
 /**
+ * Implements hook_enable().
+ */
+function profile2_enable() {
+  if (!module_exists('field_ui')) {
+    drupal_set_message(t("You should enable Field UI module to create fields on profiles."));
+  }
+}
+
+/**
  * Implements hook_schema().
  */
 function profile2_schema() {
-- 
1.7.2

