TripalCultivate/TripalCultivate-Genetics

View on GitHub
trpcultivate_genomatrix/trpcultivate_genomatrix.module

Summary

Maintainability
Test Coverage
A
100%
<?php

/**
 * @file
 * Contains all hook implementations for this module.
 */

use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function trpcultivate_genomatrix_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    // Provides the module overview in the help tab.
    case 'help.page.trpcultivate_genomatrix':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';

      $output .= '<p>' . t('This module creates a germplasm by marker matrix
      tool for quick visual querying of genotypic differences in smaller
      regions (e.g. QTL or GWAS peak).') . '</p>';

      $output .= '<p>' . t('This tool is referred to as the Genotype Matrix and
      can be accessed from a stand-alone tool page, as well as, through links
      on Tripal Content Pages provided by specialized Tripal Fields. For example,
      a field is added to Germplasm pages providing a link to the Genotype Matrix
      with that particular germplasm already added.') . '</p>';

      return $output;

    default:
  }
}