Bläddra i källkod

Fix for issue #2214765. Removed blocks from Tripal

Stephen Ficklin 10 år sedan
förälder
incheckning
188b05f512

+ 0 - 44
tripal_analysis/tripal_analysis.module

@@ -195,50 +195,6 @@ function tripal_analysis_theme($existing, $type, $theme, $path) {
 
   return $items;
 }
-/**
- * Implements hook_block_info().
- *
- * @ingroup tripal_analysis
- */
-function tripal_analysis_block_info() {
-  $blocks['base']['info'] = t('Tripal Analysis Details');
-  $blocks['base']['cache'] = DRUPAL_NO_CACHE;
-
-  $blocks['featureblast']['info'] = t('Tripal Feature Analyses');
-  $blocks['featureblast']['cache'] = DRUPAL_NO_CACHE;
-
-  return $blocks;
-}
-
-/**
- * Implements hook_block_view().
- *
- * @ingroup tripal_analysis
- */
-function tripal_analysis_block_view($delta = '') {
-
-  if (user_access('access chado_analysis content') and arg(0) == 'node' and is_numeric(arg(1))) {
-    $nid = arg(1);
-    $node = node_load($nid);
-
-    $block = array();
-    switch ($delta) {
-      case 'base':
-        $block['subject'] = t('Analysis Details');
-        $block['content'] = theme('tripal_analysis_base', $node);
-        break;
-      case 'tripal_feature_analyses':
-        $block['subject'] = t('Feature Analyses');
-        $block['content'] = theme('tripal_feature_analyses', $node);
-        break;
-      default :
-    }
-    return $block;
-  }
-}
-
-
-
 /**
  * Implements hook_views_api().
  * Essentially this hook tells drupal that there is views support for

+ 0 - 73
tripal_contact/tripal_contact.module

@@ -170,79 +170,6 @@ function tripal_contact_theme($existing, $type, $theme, $path) {
   );
   return $items;
 }
-
-/**
- * Implements hook_block_info().
- *
- * @ingroup tripal_contact
- */
-function tripal_contact_block_info() {
-
-  $blocks['contbase']['info'] = t('Tripal Contact Details');
-  $blocks['contbase']['cache'] = 'DRUPAL_NO_CACHE';
-
-  $blocks['contprops']['info'] = t('Tripal Contact Properties');
-  $blocks['contprops']['cache'] = 'DRUPAL_NO_CACHE';
-
-  $blocks['contrels']['info'] = t('Tripal Contact Relationships');
-  $blocks['contrels']['cache'] = 'DRUPAL_NO_CACHE';
-
-  $blocks['contpubs']['info'] = t('Tripal Contact Publications');
-  $blocks['contpubs']['cache'] = 'DRUPAL_NO_CACHE';
-
-  return $blocks;
-}
-
-/**
- * Implements hook_block_view().
- * @ingroup tripal_contact
- */
-function tripal_contact_block_view($delta = '') {
-
-  if (user_access('access chado_contact content') and arg(0) == 'node' and is_numeric(arg(1))) {
-    $nid = arg(1);
-    $node = node_load($nid);
-
-    $block = array();
-    switch ($delta) {
-      case 'contbase':
-        $block['subject'] = t('Overview');
-        $block['content'] = array(
-          '#theme' => 'tripal_contact_base',
-          '#nodes' => $node,
-          '#title' => '',
-        );
-        break;
-      case 'contprops':
-        $block['subject'] = t('Properties');
-        $block['content'] = array(
-          '#theme' => 'tripal_contact_properties',
-          '#nodes' => $node,
-          '#title' => '',
-        );
-        break;
-      case 'contrels':
-        $block['subject'] = t('Relationships');
-        $block['content'] = array(
-          '#theme' => 'tripal_contact_relationships',
-          '#nodes' => $node,
-          '#title' => '',
-        );
-        break;
-      case 'contpubs':
-        $block['subject'] = t('Publications');
-        $block['content'] = array(
-          '#theme' => 'tripal_contact_publications',
-          '#nodes' => $node,
-          '#title' => '',
-        );
-        break;
-      default :
-    }
-    return $block;
-  }
-}
-
 /**
  * Implement hook_permission().
  *

+ 0 - 76
tripal_example/includes/tripal_example.blocks.inc

@@ -1,76 +0,0 @@
-<?php
-
-/**
- * @ingroup tripal_example
- */
-function tripal_example_block_info() {
-
-  $blocks['libreferences']['info'] = t('Tripal Example Cross References');
-  $blocks['libreferences']['cache'] = DRUPAL_NO_CACHE;
-
-  $blocks['libbase']['info'] = t('Tripal Example Details');
-  $blocks['libbase']['cache'] = DRUPAL_NO_CACHE;
-
-  $blocks['libterms']['info'] = t('Tripal Example Terms');
-  $blocks['libterms']['cache'] = DRUPAL_NO_CACHE;
-
-  $blocks['libsynonyms']['info'] = t('Tripal Example Synonyms');
-  $blocks['libsynonyms']['cache'] = DRUPAL_NO_CACHE;
-
-  $blocks['libproperties']['info'] = t('Tripal Example Properties');
-  $blocks['libproperties']['cache'] = DRUPAL_NO_CACHE;
-
-  $blocks['featurelibs']['info'] = t('Tripal Feature Examples');
-  $blocks['featurelibs']['cache'] = DRUPAL_NO_CACHE;
-
-  $blocks['orglibs']['info'] = t('Tripal Organism Examples');
-  $blocks['orglibs']['cache'] = DRUPAL_NO_CACHE;
-
-  return $blocks;
-}
-
-
-/**
- * @ingroup tripal_example
- */
-function tripal_example_block_view($delta = '') {
-
-  if (user_access('access chado_example content') and arg(0) == 'node' and is_numeric(arg(1))) {
-    $nid = arg(1);
-    $node = node_load($nid);
-
-    $block = array();
-    switch ($delta) {
-      case 'libreferences':
-        $block['subject'] = t('Cross References');
-        $block['content'] = theme('tripal_example_references', $node);
-        break;
-      case 'libbase':
-        $block['subject'] = t('Example Details');
-        $block['content'] = theme('tripal_example_base', $node);
-        break;
-      case 'libsynonyms':
-        $block['subject'] = t('Synonyms');
-        $block['content'] = theme('tripal_example_synonyms', $node);
-        break;
-      case 'libproperties':
-        $block['subject'] = t('Properties');
-        $block['content'] = theme('tripal_example_properties', $node);
-        break;
-      case 'libterms':
-        $block['subject'] = t('Example Terms');
-        $block['content'] = theme('tripal_example_terms', $node);
-        break;
-      case 'featurelibs':
-        $block['subject'] = t('Examples');
-        $block['content'] = theme('tripal_feature_examples', $node);
-        break;
-      case 'orglibs':
-        $block['subject'] = t('Examples');
-        $block['content'] = theme('tripal_organism_examples', $node);
-        break;
-      default :
-    }
-    return $block;
-  }
-}

+ 0 - 119
tripal_feature/includes/tripal_feature.blocks.inc

@@ -1,119 +0,0 @@
-<?php
-/**
- * @file
- *  Describes the feature blocks to drupal
- */
-
-/**
- * Implements hook_block().
- *
- * @ingroup tripal_feature
- */
-function tripal_feature_block_info() {
-
-  $blocks['references']['info'] = t('Tripal Feature References');
-  $blocks['references']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['base']['info'] = t('Tripal Feature Details');
-  $blocks['base']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['sequence']['info'] = t('Tripal Feature Sequence');
-  $blocks['sequence']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['featureloc_sequences']['info'] = t('Tripal Feature Annotated Sequence');
-  $blocks['featureloc_sequences']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['synonyms']['info'] = t('Tripal Feature Synonyms');
-  $blocks['synonyms']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['properties']['info'] = t('Tripal Feature Properties');
-  $blocks['properties']['cache'] = 'BLOCK_NO_CACHE';;
-
-  $blocks['terms']['info'] = t('Tripal Annotated Terms');
-  $blocks['terms']['cache'] = 'BLOCK_NO_CACHE';;
-
-  $blocks['alignments']['info'] = t('Tripal Feature Alignments');
-  $blocks['alignments']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['relationships']['info'] = t('Tripal Feature Relationships');
-  $blocks['relationships']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['org_feature_counts']['info'] = t('Tripal Organism Feature Counts');
-  $blocks['org_feature_counts']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['org_feature_browser']['info'] = t('Tripal Organism Feature Browser');
-  $blocks['org_feature_browser']['cache'] = 'BLOCK_NO_CACHE';
-
-  return $blocks;
-}
-
-/**
- * Implements hook_block_view().
- *
- * @ingroup tripal_feature
- */
-function tripal_feature_block_view($delta = '') {
-
-  if (user_access('access chado_feature content') and arg(0) == 'node' and is_numeric(arg(1))) {
-    $nid = arg(1);
-    $node = node_load($nid);
-
-    $block = array();
-    switch ($delta) {
-      case 'references':
-        $block['subject'] = t('Cross References');
-        $block['content'] = theme('tripal_feature_references', $node);
-        break;
-      case 'base':
-        $block['subject'] = t('Feature Details');
-        $block['content'] = theme('tripal_feature_base', $node);
-        break;
-      case 'synonyms':
-        $block['subject'] = t('Synonyms');
-        $block['content'] = theme('tripal_feature_synonyms', $node);
-        break;
-      case 'properties':
-        $block['subject'] = t('Properties');
-        $block['content'] = theme('tripal_feature_properties', $node);
-        break;
-      case 'terms':
-        $block['subject'] = t('Annotated Terms');
-        $block['content'] = theme('tripal_feature_terms', $node);
-        break;
-      case 'sequence':
-        $block['subject'] = t('Sequence');
-        $block['content'] = theme('tripal_feature_sequence', $node);
-        break;
-      case 'featureloc_sequences':
-        $block['subject'] = t('Formatted Sequences');
-        $block['content'] = theme('tripal_feature_featureloc_sequences', $node);
-        break;
-      case 'alignments':
-        $block['subject'] = t('Alignments');
-        $block['content'] = theme('tripal_feature_alignments', $node);
-        break;
-      case 'relationships':
-        $block['subject'] = t('Relationships');
-        $block['content'] = theme('tripal_feature_relationships', $node);
-        break;
-      case 'org_feature_counts':
-        $block['subject'] = t('Feature Type Summary');
-        $block['content'] = theme('tripal_organism_feature_counts', array('node' => $node));
-        break;
-      case 'org_feature_browser':
-        $block['subject'] = t('Feature Browser');
-        $block['content'] = theme('tripal_organism_feature_browser', array('node' => $node));
-        break;
-      case 'library_feature_browser':
-        $block['subject'] = t('Library Feature Browser');
-        $block['content'] = theme('tripal_library_feature_browser', $node);
-        break;
-      case 'analysis_feature_browser':
-        $block['subject'] = t('Analysis Feature Browser');
-        $block['content'] = theme('tripal_analysis_feature_browser', $node);
-        break;
-      default :
-    }
-    return $block;
-  }
-}

+ 0 - 1
tripal_feature/tripal_feature.module

@@ -24,7 +24,6 @@ require_once 'includes/tripal_feature.gff_loader.inc';
 require_once 'includes/tripal_feature.seq_extract.inc';
 require_once 'includes/tripal_feature.delete.inc';
 require_once 'includes/tripal_feature.chado_node.inc';
-require_once 'includes/tripal_feature.blocks.inc';
 
 /**
  * Implements hook_views_api().

+ 0 - 64
tripal_featuremap/tripal_featuremap.module

@@ -244,70 +244,6 @@ function tripal_featuremap_theme($existing, $type, $theme, $path) {
   return $items;
 }
 
-/**
- * Implements hook_block_info().
- *
- * @ingroup tripal_featuremap
- */
-function tripal_featuremap_block_info() {
-
-  $blocks['mapbase']['info'] = t('Tripal Map Details');
-  $blocks['mapbase']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['mapprops']['info'] = t('Tripal Map Properties');
-  $blocks['mapprops']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['mappos']['info'] = t('Tripal Map Features');
-  $blocks['mappos']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['mappubs']['info'] = t('Tripal Map Publications');
-  $blocks['mappubs']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['maprefs']['info'] = t('Tripal Map References');
-  $blocks['maprefs']['cache'] = 'BLOCK_NO_CACHE';
-
-  return $blocks;
-}
-
-/**
- * Implements hook_block_view().
- *
- * @ingroup tripal_featuremap
- */
-function tripal_featuremap_block_view($delta = '') {
-
-  if (user_access('access chado_library content') and arg(0) == 'node' and is_numeric(arg(1))) {
-    $nid = arg(1);
-    $node = node_load($nid);
-
-    $block = array();
-    switch ($delta) {
-      case 'mapbase':
-        $block['subject'] = t('Library Details');
-        $block['content'] = theme('tripal_featuremap_base', $node);
-        break;
-      case 'mapprops':
-        $block['subject'] = t('Properties');
-        $block['content'] = theme('tripal_featuremap_properties', $node);
-        break;
-      case 'mappos':
-        $block['subject'] = t('Features');
-        $block['content'] = theme('tripal_featuremap_featurepos', $node);
-        break;
-      case 'mappubs':
-        $block['subject'] = t('Publications');
-        $block['content'] = theme('tripal_featuremap_publication', $node);
-        break;
-      case 'maprefs':
-        $block['subject'] = t('References');
-        $block['content'] = theme('tripal_featuremap_references', $node);
-        break;
-      default :
-    }
-    return $block;
-  }
-}
-
 /**
  * Implementation of hook_form_alter()
  *

+ 0 - 78
tripal_library/tripal_library.module

@@ -243,84 +243,6 @@ function tripal_library_help ($path, $arg) {
   }
 }
 
-/**
- * Implements hook_block_info().
- *
- * @ingroup tripal_library
- */
-function tripal_library_block_info() {
-
-  $blocks['libreferences']['info'] = t('Tripal Library Cross References');
-  $blocks['libreferences']['cache'] = DRUPAL_NO_CACHE;
-
-  $blocks['libbase']['info'] = t('Tripal Library Details');
-  $blocks['libbase']['cache'] = DRUPAL_NO_CACHE;
-
-  $blocks['libterms']['info'] = t('Tripal Library Terms');
-  $blocks['libterms']['cache'] = DRUPAL_NO_CACHE;
-
-  $blocks['libsynonyms']['info'] = t('Tripal Library Synonyms');
-  $blocks['libsynonyms']['cache'] = DRUPAL_NO_CACHE;
-
-  $blocks['libproperties']['info'] = t('Tripal Library Properties');
-  $blocks['libproperties']['cache'] = DRUPAL_NO_CACHE;
-
-  $blocks['featurelibs']['info'] = t('Tripal Feature Libraries');
-  $blocks['featurelibs']['cache'] = DRUPAL_NO_CACHE;
-
-  $blocks['orglibs']['info'] = t('Tripal Organism Libraries');
-  $blocks['orglibs']['cache'] = DRUPAL_NO_CACHE;
-
-  return $blocks;
-}
-
-/**
- * Implements hook_block_view().
- *
- * @ingroup tripal_library
- */
-function tripal_library_block_view($delta = '') {
-
-  if (user_access('access chado_library content') and arg(0) == 'node' and is_numeric(arg(1))) {
-    $nid = arg(1);
-    $node = node_load($nid);
-
-    $block = array();
-    switch ($delta) {
-      case 'libreferences':
-        $block['subject'] = t('Cross References');
-        $block['content'] = theme('tripal_library_references', $node);
-        break;
-      case 'libbase':
-        $block['subject'] = t('Library Details');
-        $block['content'] = theme('tripal_library_base', $node);
-        break;
-      case 'libsynonyms':
-        $block['subject'] = t('Synonyms');
-        $block['content'] = theme('tripal_library_synonyms', $node);
-        break;
-      case 'libproperties':
-        $block['subject'] = t('Properties');
-        $block['content'] = theme('tripal_library_properties', $node);
-        break;
-      case 'libterms':
-        $block['subject'] = t('Library Terms');
-        $block['content'] = theme('tripal_library_terms', $node);
-        break;
-      case 'featurelibs':
-        $block['subject'] = t('Libraries');
-        $block['content'] = theme('tripal_feature_libraries', $node);
-        break;
-      case 'orglibs':
-        $block['subject'] = t('Libraries');
-        $block['content'] = theme('tripal_organism_libraries', $node);
-        break;
-      default :
-    }
-    return $block;
-  }
-}
-
 /**
  * Implementation of hook_form_alter().
  *

+ 0 - 50
tripal_natural_diversity/tripal_natural_diversity.module

@@ -126,56 +126,6 @@ function tripal_natural_diversity_theme($existing, $type, $theme, $path) {
   return $items;
 }
 
-/**
- * Implements hook_block_info().
- *
- * @ingroup tripal_library
- */
-function tripal_natural_diversity_block_info() {
-
-  $blocks['ndfgenotype']['info'] = t('Tripal Natural Diversity Feature Genotypes');
-  $blocks['ndfgenotype']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['ndsgenotype']['info'] = t('Tripal Natural Diversity Library Genotypes');
-  $blocks['ndsgenotype']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['ndsphenotype']['info'] = t('Tripal Natural Diversity Stock Phenotypes');
-  $blocks['ndsphenotype']['cache'] = 'BLOCK_NO_CACHE';
-
-  return $blocks;
-}
-
-/**
- * Implements hook_block_view().
- *
- * @ingroup tripal_library
- */
-function tripal_natural_diversity_block_view($delta = '') {
-
-  if (user_access('access chado_library content') and arg(0) == 'node' and is_numeric(arg(1))) {
-    $nid = arg(1);
-    $node = node_load($nid);
-
-    $block = array();
-    switch ($delta) {
-      case 'ndfgenotype':
-        $block['subject'] = t('Genotypes');
-        $block['content'] = theme('tripal_feature_nd_genotypes', $node);
-        break;
-      case 'ndsgenotype':
-        $block['subject'] = t('Stock Genotypes');
-        $block['content'] = theme('tripal_stock_nd_genotypes', $node);
-        break;
-      case 'ndsphenotype':
-        $block['subject'] = t('Phenotypes');
-        $block['content'] = theme('tripal_stock_nd_phenotypes', $node);
-        break;
-      default :
-    }
-    return $block;
-  }
-}
-
 /**
  * Implements hook_node_view(). Acts on all content types.
  *

+ 0 - 37
tripal_organism/tripal_organism.module

@@ -18,43 +18,6 @@ require_once 'includes/tripal_organism.chado_node.inc';
  * @}
  */
 
-/**
- * Implements hook_block_info().
- *
- * @ingroup tripal_organism
- */
-function tripal_organism_block_info() {
-
-  $blocks['base']['info'] = t('Tripal Organism Details');
-  $blocks['base']['cache'] = DRUPAL_NO_CACHE;
-
-  return $blocks;
-
-}
-
-/**
- * Implements hook_block_view().
- *
- * @ingroup tripal_organism
- */
-function tripal_organism_block_view($delta = '') {
-
-  if (user_access('access chado_feature content') and arg(0) == 'node' and is_numeric(arg(1))) {
-    $nid = arg(1);
-    $node = node_load($nid);
-
-    $block = array();
-    switch ($delta) {
-      case 'base':
-        $block['subject'] = t('Organism Details');
-        $block['content'] = theme('tripal_organism_base', $node);
-        break;
-      default:
-    }
-    return $block;
-  }
-}
-
 /**
  *  Implements hook_menu().
  *

+ 0 - 64
tripal_project/tripal_project.module

@@ -207,70 +207,6 @@ function tripal_project_theme($existing, $type, $theme, $path) {
   return $items;
 }
 
-/**
- * Implements hook_block_info().
- *
- * @ingroup tripal_project
- */
-function tripal_project_block_info() {
-
-  $blocks['projectbase']['info'] = t('Tripal Project Details');
-  $blocks['projectbase']['cache'] = DRUPAL_NO_CACHE;
-
-  $blocks['projectprops']['info'] = t('Tripal Project Properties');
-  $blocks['projectprops']['cache'] = DRUPAL_NO_CACHE;
-
-  $blocks['projectpubs']['info'] = t('Tripal Project Publications');
-  $blocks['projectpubs']['cache'] = DRUPAL_NO_CACHE;
-
-  $blocks['projectcont']['info'] = t('Tripal Project Contact');
-  $blocks['projectcont']['cache'] = DRUPAL_NO_CACHE;
-
-  $blocks['projectrels']['info'] = t('Tripal Project Relationships');
-  $blocks['projectrels']['cache'] = DRUPAL_NO_CACHE;
-
-  return $blocks;
-}
-
-/**
- * Implements hook_block_view().
- *
- * @ingroup tripal_project
- */
-function tripal_project_block_view($delta = '') {
-
-  if (user_access('access chado_project content') and arg(0) == 'node' and is_numeric(arg(1))) {
-    $nid = arg(1);
-    $node = node_load($nid);
-
-    $block = array();
-    switch ($delta) {
-      case 'projectbase':
-        $block['subject'] = t('Project Details');
-        $block['content'] = theme('tripal_project_base', $node);
-        break;
-      case 'projectprops':
-        $block['subject'] = t('Properties');
-        $block['content'] = theme('tripal_project_properties', $node);
-        break;
-      case 'projectpubs':
-        $block['subject'] = t('Publications');
-        $block['content'] = theme('tripal_project_publications', $node);
-        break;
-      case 'projectcont':
-        $block['subject'] = t('Contact');
-        $block['content'] = theme('tripal_project_contact', $node);
-        break;
-      case 'projectrels':
-        $block['subject'] = t('Relationships');
-        $block['content'] = theme('tripal_project_relationships', $node);
-        break;
-      default :
-    }
-    return $block;
-  }
-}
-
 /**
  * Implementation of hook_form_alter().
  *

+ 0 - 108
tripal_stock/tripal_stock.module

@@ -340,114 +340,6 @@ function tripal_stock_help ($path, $arg) {
     return theme('tripal_stock_help', array());
   }
 }
-
-/**
- * Implements hook_block_info().
- *
- * @ingroup tripal_stock
- */
-function tripal_stock_block_info() {
-  $blocks['base']['info'] = t('Tripal Stock Details');
-  $blocks['base']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['properties']['info'] = t('Tripal Stock Properties');
-  $blocks['properties']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['references']['info'] = t('Tripal Stock References');
-  $blocks['references']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['relationships_as_object']['info'] = t('Tripal Stock Relationships');
-  $blocks['relationships_as_object']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['synonyms']['info'] = t('Tripal Stock Synonyms');
-  $blocks['synonyms']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['collections']['info'] = t('Tripal Stock Collections');
-  $blocks['collections']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['phenotypes']['info'] = t('Tripal Stock Phenotypes');
-  $blocks['phenotypes']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['genotypes']['info'] = t('Tripal Stock Genotypes');
-  $blocks['genotypes']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['locations']['info'] = t('Tripal Stock Locations');
-  $blocks['locations']['cache'] = 'BLOCK_NO_CACHE';
-
-  $blocks['orgstocks']['info'] = t('Tripal Organism Stocks');
-  $blocks['orgstocks']['cache'] = 'BLOCK_NO_CACHE';
-
-  return $blocks;
-}
-
-/**
- * Implements hook_block_view().
- *
- * @ingroup tripal_stock
- */
-function tripal_stock_block_view($delta = '') {
-
-  if (user_access('access chado_stock content') and arg(0) == 'node' and is_numeric(arg(1))) {
-    $nid = arg(1);
-    $node = node_load($nid);
-
-    $block = array();
-    switch ($delta) {
-      case 'base':
-        $block['subject'] = t('Stock Details');
-        $block['content'] = theme('tripal_stock_base', $node);
-        break;
-
-      case 'properties':
-        $block['subject'] = t('Properties');
-        $block['content'] = theme('tripal_stock_properties', $node);
-        break;
-
-      case 'references':
-        $block['subject'] = t('References');
-        $block['content'] = theme('tripal_stock_references', $node);
-        break;
-
-      case 'relationships':
-        $block['subject'] = t('Relationships');
-        $block['content'] = theme('tripal_stock_relationships', $node);
-        break;
-
-      case 'synonyms':
-        $block['subject'] = t('Synonyms');
-        $block['content'] = theme('tripal_stock_synonyms', $node);
-        break;
-
-      case 'collections':
-        $block['subject'] = t('Stock Collections');
-        $block['content'] = theme('tripal_stock_collections', $node);
-        break;
-
-      case 'phenotypes':
-        $block['subject'] = t('Stock Phenotypes');
-        $block['content'] = theme('tripal_stock_phenotypes', $node);
-        break;
-
-      case 'genotypes':
-        $block['subject'] = t('Stock Genotypes');
-        $block['content'] = theme('tripal_stock_genotypes', $node);
-        break;
-
-      case 'locations':
-        $block['subject'] = t('Stock Locations');
-        $block['content'] = theme('tripal_stock_locations', $node);
-        break;
-
-      case 'orgstocks':
-        $block['subject'] = t('Organism Stocks');
-        $block['content'] = theme('tripal_organism_stocks', $node);
-        break;
-
-    }
-    return $block;
-  }
-}
-
 /*
  * Uses the value provided in the $id argument to find all stocks that match
  * that ID by name, stockname or synonym.  If it matches uniquenly to a single