فهرست منبع

Re-arranged feature admin menu including adding the feature module description stub and moving the gff loader from core to feature

laceysanderson 14 سال پیش
والد
کامیت
1c59d38e68
4فایلهای تغییر یافته به همراه39 افزوده شده و 10 حذف شده
  1. 0 9
      tripal_core/tripal_core.module
  2. 0 0
      tripal_feature/gff_loader.php
  3. 21 0
      tripal_feature/tripal_feature.admin.inc
  4. 18 1
      tripal_feature/tripal_feature.module

+ 0 - 9
tripal_core/tripal_core.module

@@ -4,7 +4,6 @@ require_once "jobs.php";
 require_once "mviews.php";
 require_once "cvterms.php";
 require_once "chado_install.php";
-require_once "gff_loader.php";
 require_once "bulk_loader.php";
 
 require_once "tripal_core.api.inc";
@@ -144,14 +143,6 @@ function tripal_core_menu() {
      'access arguments' => array('access administration pages'),
      'type' => MENU_NORMAL_ITEM,
    );
-   $items['admin/tripal/gff3_load'] = array(
-     'title' => 'Import a GFF3 file',
-     'description' => 'Import a GFF3 file into Chado',
-     'page callback' => 'drupal_get_form',
-     'page arguments' => array('tripal_core_gff3_load_form'),
-     'access arguments' => array('access administration pages'),
-     'type' => MENU_NORMAL_ITEM,
-   );
 
    $items['admin/tripal/bulk_load/create'] = array(
      'title' => 'Create Bulk Loader',

+ 0 - 0
tripal_core/gff_loader.php → tripal_feature/gff_loader.php


+ 21 - 0
tripal_feature/tripal_feature.admin.inc

@@ -1,5 +1,26 @@
 <?php
 
+/*************************************************************************
+ * Purpose: Provide Guidance to new Tripal Admin
+ *
+ * @return HTML Formatted text
+ */
+function tripal_feature_module_description_page() {
+  $text = '';
+  
+  $text .= '<h3>Description:</h3>';
+  $text .= '<p>TODO: Basic Description of this module including mention/link to the chado module</p>';
+
+  $text .= '<h3>Post Installation Instructions:</h3>';
+  $text .= '<p>TODO: Describe any post installation intructions here. You shouldalways include setting user permissions.</p>';
+  
+  
+  $text .= '<h3>Features of this Module:</h3>';
+  $text .= '<p>TODO: Discuss the Features of this module including links. Some features to consider are creating content, details pages/node content, editing/deleteing, basic listings and vies integration. See admin/tripal/tripal_stock for an example.</p>';
+  
+  return $text;
+}
+
 /************************************************************************
  *
  */

+ 18 - 1
tripal_feature/tripal_feature.module

@@ -4,6 +4,7 @@ require_once "tripal_feature.admin.inc";
 require_once "syncFeatures.php";
 require_once "indexFeatures.php";
 require_once "fasta_loader.php";
+require_once "gff_loader.php";
 
 require_once "tripal_feature.api.inc";
 
@@ -125,13 +126,20 @@ function tripal_feature_menu() {
    // the administative settings menu
    $items['admin/tripal/tripal_feature'] = array(
      'title' => 'Features',
+     'description' => 'Basic Description of Tripal Organism Module Functionality',
+     'page callback' => 'tripal_feature_module_description_page',
+     'access arguments' => array('administer site configuration'),
+     'type' => MENU_NORMAL_ITEM,
+   );
+   $items['admin/tripal/tripal_feature/configuration'] = array(
+     'title' => 'Configuration',
      'description' => 'Settings for Chado Features',
      'page callback' => 'drupal_get_form',
      'page arguments' => array('tripal_feature_admin'),
      'access arguments' => array('administer site configuration'),
      'type' => MENU_NORMAL_ITEM,
    );
-   $items['admin/tripal/fasta_loader'] = array(
+   $items['admin/tripal/tripal_feature/fasta_loader'] = array(
      'title' => 'Import a multi-FASTA file',
      'description' => 'Load sequences from a multi-FASTA file into Chado',
      'page callback' => 'drupal_get_form',
@@ -139,6 +147,15 @@ function tripal_feature_menu() {
      'access arguments' => array('administer site configuration'),
      'type' => MENU_NORMAL_ITEM,
    );
+   $items['admin/tripal/tripal_feature/gff3_load'] = array(
+     'title' => 'Import a GFF3 file',
+     'description' => 'Import a GFF3 file into Chado',
+     'page callback' => 'drupal_get_form',
+     'page arguments' => array('tripal_core_gff3_load_form'),
+     'access arguments' => array('access administration pages'),
+     'type' => MENU_NORMAL_ITEM,
+   );
+
 
    // managing relationship aggregates
    $items['admin/tripal/tripal_feature/aggregate'] = array(