2.0, ); } /** * Implements hook_theme */ 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), ); } } }