瀏覽代碼

Added in some missing dependencies and a warning message reminding me to load the sequence ontology :-).

Lacey Sanderson 9 年之前
父節點
當前提交
01beaf58d3
共有 2 個文件被更改,包括 15 次插入2 次删除
  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

@@ -137,13 +137,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).