Tripal v1.0 (6.x-1.0)
|
Go to the source code of this file.
Functions | |
tripal_genetic_views_api () | |
tripal_genetic_theme () | |
tripal_genetic_nodeapi (&$node, $op, $teaser, $page) |
This file contains the basic functions needed for this drupal module. The drupal tripal_genetic module maps directly to the chado X module.
For documentation regarding the Chado X module:
Definition in file tripal_genetic.module.
tripal_genetic_nodeapi | ( | &$ | node, |
$ | op, | ||
$ | teaser, | ||
$ | page | ||
) |
Definition at line 43 of file tripal_genetic.module.
{ switch ($op) { case 'view': if ($node->type == 'chado_feature') { // the tripal_natural_diversity module provides a tripal_feature_nd_genotype // template. The only difference between them is the addition of // project information by this ND module's template. Therefore, // if the tripal_natural_diversity content is present then don't add the // template from this module as the ND module would superceed this. if (!array_key_exists('tripal_feature_nd_genotypes', $node->content)) { $node->content['tripal_feature_genotypes'] = array( '#value' => theme('tripal_feature_genotypes', $node), ); } } } }
tripal_genetic_theme | ( | ) |
Definition at line 31 of file tripal_genetic.module.
{ return array( 'tripal_feature_genotypes' => array( 'arguments' => array('node' => NULL), 'template' => 'tripal_feature_genotypes', ), ); }
tripal_genetic_views_api | ( | ) |
Definition at line 22 of file tripal_genetic.module.
{ return array( 'api' => 2.0, ); }