public function sio__annotation_widget::theme

3.x sio__annotation_widget.inc public sio__annotation_widget::theme($element)

Overrides TripalFieldWidget::theme

See also

TripalFieldWidget::theme()

File

tripal_chado/includes/TripalFields/sio__annotation/sio__annotation_widget.inc, line 262

Class

sio__annotation_widget

Code

public function theme($element) {
  $field_table = $this->instance['settings']['chado_table'];
  $layout = "
      <div class=\"sio--annotation-widget\">
        <div class=\"sio--annotation-item\">" .
    drupal_render($element['cv_id']) . "
        </div>
        <div class=\"sio--annotation-item\">" .
    drupal_render($element['cvterm_name']) . "
        </div>
        <div class=\"sio--annotation-item\">" .
    drupal_render($element['pub']) . "
        </div>
        <div class=\"sio--annotation-item\">" .
    drupal_render($element['chado-' . $field_table . '__is_not']) . "
        </div>
      </div>
    ";

  return $layout;
}