function list_dbreferences_for_node
1.x tripal_feature-db_references.inc | list_dbreferences_for_node($db_references) |
Related topics
1 call to list_dbreferences_for_node()
- tripal_feature_add_ALL_dbreferences_page in tripal_feature/
includes/ tripal_feature-db_references.inc
File
- tripal_feature/
includes/ tripal_feature-db_references.inc, line 339 - @todo Add file header description
Code
function list_dbreferences_for_node($db_references) {
if (!empty($db_references)) {
$output = '<table>';
$output .= '<tr><th>Database</th><th>Accession</th></tr>';
foreach ($db_references as $db) {
$output .= '<tr><td>' . $db->db_name . '</td><td>' . $db->accession . '</td></tr>';
} // end of foreach db reference
$output .= '</table>';
}
else {
$output = 'No Database References Added to the Current Feature';
}
return $output;
}