synonyms: an array of stock property objects where each object // has type=synonyms and the following fields: stockprop_id, type_id, // type, value, rank // NOTE: For a full listing of fields available in the node object the // print_r $node line below or install the Drupal Devel module which // provides an extra tab at the top of the node page labelled Devel ?> stock->stock_synonyms = tripal_core_generate_chado_var( 'stockprop', array( 'stock_id'=>$node->stock->stock_id, 'type_id' => array( 'cv_id' => variable_get('chado_stock_prop_types_cv', 'null'), 'name' => 'synonym' ), ) ); $synonyms = $node->stock->stock_synonyms; if (!$synonyms) { $synonyms = array(); } elseif (!is_array($synonyms)) { $synonyms = array($synonyms); } ?> '.print_r($node,TRUE).''; ?>
Synonyms
Synonyms for the stock 'stock->name ?>' include:
0){ print ''; } else { print 'There are no synonyms for the current stock.'; } ?>