public function sbo__relationship_widget::theme

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

Theme function for the sbo__relationship_widget.

Overrides TripalFieldWidget::theme

File

tripal_chado/includes/TripalFields/sbo__relationship/sbo__relationship_widget.inc, line 444

Class

sbo__relationship_widget

Code

public function theme($element) {
  $layout = "
      <div class=\"chado-linker--relationship-widget\">
        <div class=\"chado-linker--relationship-widget-item\">" .
    drupal_render($element['subject_name']) . "
        </div>
        <div class=\"chado-linker--relationship-widget-item\">" .
    drupal_render($element['vocabulary']) . "
        </div>
        <div class=\"chado-linker--relationship-widget-item\">" .
    drupal_render($element['type_name']) . "
        </div>
        <div class=\"chado-linker--relationship-widget-item\">" .
    drupal_render($element['type_id']) . "
        </div>
        <div>" .
    drupal_render($element['object_name']) . "
        </div>
      </div>
    ";
  return $layout;
}