function theme_tripal_feature_edit_ALL_db_references_form
1.x tripal_feature-db_references.inc | theme_tripal_feature_edit_ALL_db_references_form($form) |
Related topics
File
- tripal_feature/
includes/ tripal_feature-db_references.inc, line 310 - @todo Add file header description
Code
function theme_tripal_feature_edit_ALL_db_references_form($form) {
$output = '';
$output .= '<br /><fieldset>';
$output .= '<legend>Edit Existing Database References<span class="form-optional" title="This field is optional">(optional)</span></legend>';
$output .= '<p>Below is a list of already existing database references, one per line. When entering a database reference, the accession '
. 'is a unique identifier for this feature in the specified database.</p>';
$output .= '<table>';
$output .= '<tr><th>#</th><th>Database</th><th>Accession</th><th></th></tr>';
for ($i = 1; $i <= $form['num_db_references']['#value']; $i++) {
$output .= '<tr><td>' . drupal_render($form["num-$i"]) . '</td><td>'
. drupal_render($form["database-$i"]) . '</td><td>'
. drupal_render($form["accession-$i"]) . '</td><td>'
. drupal_render($form["submit-$i"]) . '</td></tr>';
}
$output .= '</table><br />';
$output .= drupal_render($form);
$output .= '</fieldset>';
return $output;
}