1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- require('api/tripal_genetic.api.inc');
- require('includes/tripal_genetic.schema.inc');
- function tripal_genetic_views_api() {
- return array(
- 'api' => 2.0,
- );
- }
- function tripal_genetic_theme() {
- return array(
- 'tripal_feature_genotypes' => array(
- 'arguments' => array('node' => NULL),
- 'template' => 'tripal_feature_genotypes',
- ),
- );
- }
- function tripal_genetic_nodeapi(&$node, $op, $teaser, $page) {
- switch ($op) {
- case 'view':
- if ($node->type == 'chado_feature') {
-
-
-
-
-
- if (!array_key_exists('tripal_feature_nd_genotypes', $node->content)) {
- $node->content['tripal_feature_genotypes'] = array(
- '#value' => theme('tripal_feature_genotypes', $node),
- );
- }
- }
- }
- }
|