Browse Source

Merge branch 'entities' of git.drupal.org:project/tripal into entities

Stephen Ficklin 9 years ago
parent
commit
9f6b05daad
2 changed files with 15 additions and 2 deletions
  1. 3 0
      tripal_entities/tripal_entities.info
  2. 12 2
      tripal_entities/tripal_entities.install

+ 3 - 0
tripal_entities/tripal_entities.info

@@ -9,3 +9,6 @@ configure = admin/tripal/chado/tripal_entities
 dependencies[] = tripal_core
 dependencies[] = tripal_views
 dependencies[] = tripal_db
+dependencies[] = tripal_cv
+
+dependencies[] = entity

+ 12 - 2
tripal_entities/tripal_entities.install

@@ -434,13 +434,23 @@ function tripal_entities_schema() {
   return $schema;
 }
 
+/**
+ * Implements hook_install().
+ *
+ * The current implementation assumes we are using the sequence ontology so we should
+ * warn people trying this out that they need to first load the sequence ontology.
+ */
+function tripal_entities_install() {
+  
+  drupal_set_message('The current Entity Example (Genes) requires the Sequence Ontology.', 'warning');
+  
+}
+
 /**
  * Implements hook_uninstall().
  *
  * At uninstall time we'll notify field.module that the entity was deleted
  * so that attached fields can be cleaned up.
- *
- * @ingroup entity_example
  */
 function tripal_entities_uninstall() {
   // TODO: make this dynamic (not hardcoded bundle).