function theme_tripal_stock_edit_ALL_relationships_form

1.x tripal_stock-relationships.inc theme_tripal_stock_edit_ALL_relationships_form($form)

Related topics

1 string reference to 'theme_tripal_stock_edit_ALL_relationships_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-relationships.inc, line 478
@todo Add file header description

Code

function theme_tripal_stock_edit_ALL_relationships_form($form) {
  $output = '';

  $output .= '<br /><fieldset>';
  $output .= '<legend>Edit Already Existing Relationships<span class="form-optional" title="This field is optional">(optional)</span></legend>';
  $output .= '<p>Each relationship for this stock is listed below, one per line. The textboxes indicating '
    . 'the subject and object of the relationship can contain the uniquename, name, database '
    . 'reference or synonym of a stock of the same organism.</p>';
  $output .= '<table>';
  $output .= '<tr><th>#</th><th>Subject</th><th>Type</th><th>Object</th><th></th></tr>';

  for ($i = 1; $i <= $form['num_relationships']['#value']; $i++) {
    $output .= '<tr><td>' . drupal_render($form["num-$i"]) . '</td><td>'
      . drupal_render($form["subject_id-$i"]) . '</td><td>'
      . drupal_render($form["type_id-$i"]) . '</td><td>'
      . drupal_render($form["object_id-$i"]) . '</td><td>'
      . drupal_render($form["submit-$i"]) . '</td></tr>';
  }

  $output .= '</table><br />';
  $output .= drupal_render($form);
  $output .= '</fieldset>';

  return $output;
}