function theme_tripal_stock_edit_ALL_db_references_form

1.x tripal_stock-db_references.inc theme_tripal_stock_edit_ALL_db_references_form($form)

Themes the Edit All Database References for a stock form

Parameters

$form: An array describing the form to be themed

Return value

An HTML rendering of the form

Related topics

1 string reference to 'theme_tripal_stock_edit_ALL_db_references_form'
tripal_stock_theme in tripal_stock/tripal_stock.module
Implements hook_theme(): Register themeing functions for this module

File

tripal_stock/includes/tripal_stock-db_references.inc, line 396
@todo Add file header description

Code

function theme_tripal_stock_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 stock 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;
}