Browse Source

Added skeleton tripal modules for project, contact, publication, phenotype, genetic, natural diversity chado modules

laceysanderson 14 years ago
parent
commit
4112e5049e

+ 9 - 0
tripal_contact/tripal_contact.info

@@ -0,0 +1,9 @@
+; $Id$
+package = Tripal
+name = Tripal Contact
+version = 0.3a
+description = A module for interfacing the GMOD chado database with Drupal, providing viewing of Contacts
+core = 6.x
+
+dependencies[] = tripal_core
+dependencies[] = tripal_cv

+ 22 - 0
tripal_contact/tripal_contact.module

@@ -0,0 +1,22 @@
+<?php
+
+/**
+ *  @file
+ * This file contains the basic functions needed for this drupal module.
+ * The drupal tripal_contact module maps directly to the chado X module. 
+ *
+ * For documentation regarding the Chado X module: 
+ * @see http://gmod.org/wiki/Chado_General_Module
+ */
+
+/*************************************************************************
+ * Implements hook_views_api()
+ * Purpose: Essentially this hook tells drupal that there is views support for
+ *  for this module which then includes tripal_contact.views.inc where all the
+ *  views integration code is
+ */ 
+function tripal_contact_views_api() {
+   return array(
+      'api' => 2.0,
+   );
+}

+ 46 - 0
tripal_contact/tripal_contact.views.inc

@@ -0,0 +1,46 @@
+<?php
+
+/**
+ *  @file
+ *  This file contains the basic functions for views integration of
+ *  chado/tripal_contact tables. Supplementary functions can be found in
+ *  ./views/
+ *
+ *  Documentation on views integration can be found at 
+ *  http://views2.logrus.com/doc/html/index.html.
+ */
+ 
+/*************************************************************************
+ * Implements hook_views_data()
+ * Purpose: Describe chado/tripal tables & fields to views
+ *
+ * @return: a data array which follows the structure outlined in the
+ *   views2 documentation for this hook. Essentially, it's an array of table
+ *   definitions keyed by chado/tripal table name. Each table definition 
+ *   includes basic details about the table, fields in that table and
+ *   relationships between that table and others (joins)
+ */
+function tripal_contact_views_data()  {
+  $data = array();
+  
+  return $data;
+}
+
+/*************************************************************************
+ * Implements hook_views_handlers()
+ * Purpose: Register all custom handlers with views
+ *   where a handler describes either "the type of field", 
+ *   "how a field should be filtered", "how a field should be sorted"
+ *
+ * @return: An array of handler definitions
+ */
+function tripal_contact_views_handlers() {
+ return array(
+   'info' => array(
+     'path' => drupal_get_path('module', 'tripal_contact') . '/views/handlers',
+   ),
+   'handlers' => array(
+
+   ),
+ );
+}

+ 13 - 0
tripal_genetic/tripal_genetic.info

@@ -0,0 +1,13 @@
+; $Id$
+package = Tripal
+name = Tripal Genetic
+version = 0.3a
+description = A module for interfacing the GMOD chado database with Drupal, providing viewing of Genetic data
+core = 6.x
+
+dependencies[] = tripal_core
+dependencies[] = tripal_feature
+dependencies[] = tripal_cv
+dependencies[] = tripal_db
+dependencies[] = tripal_publication
+dependencies[] = tripal_phenotype

+ 22 - 0
tripal_genetic/tripal_genetic.module

@@ -0,0 +1,22 @@
+<?php
+
+/**
+ *  @file
+ * This file contains the basic functions needed for this drupal module.
+ * The drupal tripal_genetic module maps directly to the chado X module. 
+ *
+ * For documentation regarding the Chado X module: 
+ * @see http://gmod.org/wiki/Chado_General_Module
+ */
+
+/*************************************************************************
+ * Implements hook_views_api()
+ * Purpose: Essentially this hook tells drupal that there is views support for
+ *  for this module which then includes tripal_genetic.views.inc where all the
+ *  views integration code is
+ */ 
+function tripal_genetic_views_api() {
+   return array(
+      'api' => 2.0,
+   );
+}

+ 46 - 0
tripal_genetic/tripal_genetic.views.inc

@@ -0,0 +1,46 @@
+<?php
+
+/**
+ *  @file
+ *  This file contains the basic functions for views integration of
+ *  chado/tripal_genetic tables. Supplementary functions can be found in
+ *  ./views/
+ *
+ *  Documentation on views integration can be found at 
+ *  http://views2.logrus.com/doc/html/index.html.
+ */
+ 
+/*************************************************************************
+ * Implements hook_views_data()
+ * Purpose: Describe chado/tripal tables & fields to views
+ *
+ * @return: a data array which follows the structure outlined in the
+ *   views2 documentation for this hook. Essentially, it's an array of table
+ *   definitions keyed by chado/tripal table name. Each table definition 
+ *   includes basic details about the table, fields in that table and
+ *   relationships between that table and others (joins)
+ */
+function tripal_genetic_views_data()  {
+  $data = array();
+  
+  return $data;
+}
+
+/*************************************************************************
+ * Implements hook_views_handlers()
+ * Purpose: Register all custom handlers with views
+ *   where a handler describes either "the type of field", 
+ *   "how a field should be filtered", "how a field should be sorted"
+ *
+ * @return: An array of handler definitions
+ */
+function tripal_genetic_views_handlers() {
+ return array(
+   'info' => array(
+     'path' => drupal_get_path('module', 'tripal_genetic') . '/views/handlers',
+   ),
+   'handlers' => array(
+
+   ),
+ );
+}

+ 13 - 0
tripal_natural_diversity/tripal_natural_diversity.info

@@ -0,0 +1,13 @@
+; $Id$
+package = Tripal
+name = Tripal Natural Diversity
+version = 0.3a
+description = A module for interfacing the GMOD chado database with Drupal, providing viewing of Natural Diversity data
+core = 6.x
+
+dependencies[] = tripal_core
+dependencies[] = tripal_cv
+dependencies[] = tripal_db
+dependencies[] = tripal_genetic
+dependencies[] = tripal_phenotype
+dependencies[] = tripal_project

+ 22 - 0
tripal_natural_diversity/tripal_natural_diversity.module

@@ -0,0 +1,22 @@
+<?php
+
+/**
+ *  @file
+ * This file contains the basic functions needed for this drupal module.
+ * The drupal tripal_natural_diversity module maps directly to the chado X module. 
+ *
+ * For documentation regarding the Chado X module: 
+ * @see http://gmod.org/wiki/Chado_General_Module
+ */
+
+/*************************************************************************
+ * Implements hook_views_api()
+ * Purpose: Essentially this hook tells drupal that there is views support for
+ *  for this module which then includes tripal_natural_diversity.views.inc where all the
+ *  views integration code is
+ */ 
+function tripal_natural_diversity_views_api() {
+   return array(
+      'api' => 2.0,
+   );
+}

+ 46 - 0
tripal_natural_diversity/tripal_natural_diversity.views.inc

@@ -0,0 +1,46 @@
+<?php
+
+/**
+ *  @file
+ *  This file contains the basic functions for views integration of
+ *  chado/tripal_natural_diversity tables. Supplementary functions can be found in
+ *  ./views/
+ *
+ *  Documentation on views integration can be found at 
+ *  http://views2.logrus.com/doc/html/index.html.
+ */
+ 
+/*************************************************************************
+ * Implements hook_views_data()
+ * Purpose: Describe chado/tripal tables & fields to views
+ *
+ * @return: a data array which follows the structure outlined in the
+ *   views2 documentation for this hook. Essentially, it's an array of table
+ *   definitions keyed by chado/tripal table name. Each table definition 
+ *   includes basic details about the table, fields in that table and
+ *   relationships between that table and others (joins)
+ */
+function tripal_natural_diversity_views_data()  {
+  $data = array();
+  
+  return $data;
+}
+
+/*************************************************************************
+ * Implements hook_views_handlers()
+ * Purpose: Register all custom handlers with views
+ *   where a handler describes either "the type of field", 
+ *   "how a field should be filtered", "how a field should be sorted"
+ *
+ * @return: An array of handler definitions
+ */
+function tripal_natural_diversity_views_handlers() {
+ return array(
+   'info' => array(
+     'path' => drupal_get_path('module', 'tripal_natural_diversity') . '/views/handlers',
+   ),
+   'handlers' => array(
+
+   ),
+ );
+}

+ 10 - 0
tripal_phenotype/tripal_phenotype.info

@@ -0,0 +1,10 @@
+; $Id$
+package = Tripal
+name = Tripal Phenotype
+version = 0.3a
+description = A module for interfacing the GMOD chado database with Drupal, providing viewing of Phenotype Data
+core = 6.x
+
+dependencies[] = tripal_core
+dependencies[] = tripal_cv
+dependencies[] = tripal_feature

+ 22 - 0
tripal_phenotype/tripal_phenotype.module

@@ -0,0 +1,22 @@
+<?php
+
+/**
+ *  @file
+ * This file contains the basic functions needed for this drupal module.
+ * The drupal tripal_phenotype module maps directly to the chado X module. 
+ *
+ * For documentation regarding the Chado X module: 
+ * @see http://gmod.org/wiki/Chado_General_Module
+ */
+
+/*************************************************************************
+ * Implements hook_views_api()
+ * Purpose: Essentially this hook tells drupal that there is views support for
+ *  for this module which then includes tripal_phenotype.views.inc where all the
+ *  views integration code is
+ */ 
+function tripal_phenotype_views_api() {
+   return array(
+      'api' => 2.0,
+   );
+}

+ 46 - 0
tripal_phenotype/tripal_phenotype.views.inc

@@ -0,0 +1,46 @@
+<?php
+
+/**
+ *  @file
+ *  This file contains the basic functions for views integration of
+ *  chado/tripal_phenotype tables. Supplementary functions can be found in
+ *  ./views/
+ *
+ *  Documentation on views integration can be found at 
+ *  http://views2.logrus.com/doc/html/index.html.
+ */
+ 
+/*************************************************************************
+ * Implements hook_views_data()
+ * Purpose: Describe chado/tripal tables & fields to views
+ *
+ * @return: a data array which follows the structure outlined in the
+ *   views2 documentation for this hook. Essentially, it's an array of table
+ *   definitions keyed by chado/tripal table name. Each table definition 
+ *   includes basic details about the table, fields in that table and
+ *   relationships between that table and others (joins)
+ */
+function tripal_phenotype_views_data()  {
+  $data = array();
+  
+  return $data;
+}
+
+/*************************************************************************
+ * Implements hook_views_handlers()
+ * Purpose: Register all custom handlers with views
+ *   where a handler describes either "the type of field", 
+ *   "how a field should be filtered", "how a field should be sorted"
+ *
+ * @return: An array of handler definitions
+ */
+function tripal_phenotype_views_handlers() {
+ return array(
+   'info' => array(
+     'path' => drupal_get_path('module', 'tripal_phenotype') . '/views/handlers',
+   ),
+   'handlers' => array(
+
+   ),
+ );
+}

+ 9 - 0
tripal_project/tripal_project.info

@@ -0,0 +1,9 @@
+; $Id$
+package = Tripal
+name = Tripal Project
+version = 3.0a
+description = A module for interfacing the GMOD chado database with Drupal, providing viewing of projects
+core = 6.x
+
+dependencies[] = tripal_core
+dependencies[] = cv

+ 22 - 0
tripal_project/tripal_project.module

@@ -0,0 +1,22 @@
+<?php
+
+/**
+ *  @file
+ * This file contains the basic functions needed for this drupal module.
+ * The drupal tripal_project module maps directly to the chado general module. 
+ *
+ * For documentation regarding the Chado General module: 
+ * @see http://gmod.org/wiki/Chado_General_Module
+ */
+
+/*************************************************************************
+ * Implements hook_views_api()
+ * Purpose: Essentially this hook tells drupal that there is views support for
+ *  for this module which then includes tripal_project.views.inc where all the
+ *  views integration code is
+ */ 
+function tripal_project_views_api() {
+   return array(
+      'api' => 2.0,
+   );
+}

+ 46 - 0
tripal_project/tripal_project.views.inc

@@ -0,0 +1,46 @@
+<?php
+
+/**
+ *  @file
+ *  This file contains the basic functions for views integration of
+ *  chado/tripal_project tables. Supplementary functions can be found in
+ *  ./views/
+ *
+ *  Documentation on views integration can be found at 
+ *  http://views2.logrus.com/doc/html/index.html.
+ */
+ 
+/*************************************************************************
+ * Implements hook_views_data()
+ * Purpose: Describe chado/tripal tables & fields to views
+ *
+ * @return: a data array which follows the structure outlined in the
+ *   views2 documentation for this hook. Essentially, it's an array of table
+ *   definitions keyed by chado/tripal table name. Each table definition 
+ *   includes basic details about the table, fields in that table and
+ *   relationships between that table and others (joins)
+ */
+function tripal_project_views_data()  {
+  $data = array();
+  
+  return $data;
+}
+
+/*************************************************************************
+ * Implements hook_views_handlers()
+ * Purpose: Register all custom handlers with views
+ *   where a handler describes either "the type of field", 
+ *   "how a field should be filtered", "how a field should be sorted"
+ *
+ * @return: An array of handler definitions
+ */
+function tripal_project_views_handlers() {
+ return array(
+   'info' => array(
+     'path' => drupal_get_path('module', 'tripal_project') . '/views/handlers',
+   ),
+   'handlers' => array(
+
+   ),
+ );
+}

+ 10 - 0
tripal_publication/tripal_publication.info

@@ -0,0 +1,10 @@
+; $Id$
+package = Tripal
+name = Tripal Publication
+version = 0.3a
+description = A module for interfacing the GMOD chado database with Drupal, providing viewing of publications
+core = 6.x
+
+dependencies[] = tripal_core
+dependencies[] = tripal_cv
+dependencies[] = tripal_db

+ 22 - 0
tripal_publication/tripal_publication.module

@@ -0,0 +1,22 @@
+<?php
+
+/**
+ *  @file
+ * This file contains the basic functions needed for this drupal module.
+ * The drupal tripal_publication module maps directly to the chado X module. 
+ *
+ * For documentation regarding the Chado X module: 
+ * @see http://gmod.org/wiki/Chado_General_Module
+ */
+
+/*************************************************************************
+ * Implements hook_views_api()
+ * Purpose: Essentially this hook tells drupal that there is views support for
+ *  for this module which then includes tripal_publication.views.inc where all the
+ *  views integration code is
+ */ 
+function tripal_publication_views_api() {
+   return array(
+      'api' => 2.0,
+   );
+}

+ 46 - 0
tripal_publication/tripal_publication.views.inc

@@ -0,0 +1,46 @@
+<?php
+
+/**
+ *  @file
+ *  This file contains the basic functions for views integration of
+ *  chado/tripal_publication tables. Supplementary functions can be found in
+ *  ./views/
+ *
+ *  Documentation on views integration can be found at 
+ *  http://views2.logrus.com/doc/html/index.html.
+ */
+ 
+/*************************************************************************
+ * Implements hook_views_data()
+ * Purpose: Describe chado/tripal tables & fields to views
+ *
+ * @return: a data array which follows the structure outlined in the
+ *   views2 documentation for this hook. Essentially, it's an array of table
+ *   definitions keyed by chado/tripal table name. Each table definition 
+ *   includes basic details about the table, fields in that table and
+ *   relationships between that table and others (joins)
+ */
+function tripal_publication_views_data()  {
+  $data = array();
+  
+  return $data;
+}
+
+/*************************************************************************
+ * Implements hook_views_handlers()
+ * Purpose: Register all custom handlers with views
+ *   where a handler describes either "the type of field", 
+ *   "how a field should be filtered", "how a field should be sorted"
+ *
+ * @return: An array of handler definitions
+ */
+function tripal_publication_views_handlers() {
+ return array(
+   'info' => array(
+     'path' => drupal_get_path('module', 'tripal_publication') . '/views/handlers',
+   ),
+   'handlers' => array(
+
+   ),
+ );
+}