function chado_featuremap_load
2.x tripal_featuremap.chado_node.inc | chado_featuremap_load($nodes) |
3.x tripal_featuremap.chado_node.inc | chado_featuremap_load( |
1.x tripal_featuremap.module | chado_featuremap_load($node) |
When a node is requested by the user this function is called to allow us to add auxiliary data to the node object.
Related topics
File
- tripal_featuremap/
tripal_featuremap.module, line 570
Code
function chado_featuremap_load($node) {
// get the feature details from chado
$featuremap_id = chado_get_id_for_node('featuremap', $node);
$values = array('featuremap_id' => $featuremap_id);
$featuremap = tripal_core_generate_chado_var('featuremap', $values);
// expand the description field as it is needed by the form
$featuremap = tripal_core_expand_chado_vars($featuremap, 'field', 'featuremap.description');
$additions = new stdClass();
$additions->featuremap = $featuremap;
return $additions;
}