function theme_tripal_stock_edit_ALL_properties_form

1.x tripal_stock-properties.inc theme_tripal_stock_edit_ALL_properties_form($form)

Related topics

1 string reference to 'theme_tripal_stock_edit_ALL_properties_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-properties.inc, line 355
@todo Add file header description

Code

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

  $output .= '<br /><fieldset>';
  $output .= '<legend>Edit Already Existing Properties<span class="form-optional" title="This field is optional">(optional)</span></legend>';
  $output .= '<p>Below is a list of already existing properties for this stock, one property per line. The type refers to the type of '
    . 'property and the value is the value for that property. For example, if this stock has a seed coat colour of green then '
    . 'the property type=sead coat colour and the value=green. When the type of property is synonym, there is an extra checkbox '
    . 'allowing you to specify which is the <b>Preferred Synonym</b>. This will change the current name of the stock.</p>';
  $output .= '<table>';
  $output .= '<tr><th>#</th><th>Type</th><th>Value</th><th></th></tr>';

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

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

  return $output;
}