12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- require_once('tripal_natural_diversity.api.inc');
-
- function tripal_natural_diversity_views_api() {
- return array(
- 'api' => 2.0,
- );
- }
- function tripal_natural_diversity_theme() {
- return array(
- 'tripal_feature_genotype_experiments' => array(
- 'arguments' => array('node' => NULL),
- 'template' => 'tripal_feature-genotype_experiments',
- ),
- 'tripal_stock_genotype_experiments' => array(
- 'arguments' => array('node' => NULL),
- 'template' => 'tripal_feature-stock_experiments',
- ),
- );
- }
- function tripal_natural_diversity_nodeapi (&$node, $op, $teaser, $page) {
- switch ($op) {
- case 'view':
- if ($node->type == 'chado_feature') {
- $node->content['tripal_feature_genotype_experiments'] = array(
- '#value' => theme('tripal_feature_genotype_experiments', $node),
- );
- } elseif ($node->type == 'chado_stock') {
- $node->content['tripal_stock_genotype_experiments'] = array(
- '#value' => theme('tripal_stock_genotype_experiments', $node),
- );
- }
- }
- }
|