public function data__accession_widget::theme
3.x data__accession_widget.inc | public data__accession_widget::theme($element) |
Overrides TripalFieldWidget::theme
See also
File
- tripal_chado/
includes/ TripalFields/ data__accession/ data__accession_widget.inc, line 150
Class
Code
public function theme($element) {
$layout = "
<div class=\"primary-dbxref-widget\">
<div class=\"primary-dbxref-widget-item\">" .
drupal_render($element['db_id']) . "
</div>
<div class=\"primary-dbxref-widget-item\">" .
drupal_render($element['accession']) . "
</div>
</div>
";
$fieldset = array(
'#title' => $element['#title'],
'#value' => '',
'#description' => $element['#description'],
'#children' => $layout,
);
return theme('fieldset', array('element' => $fieldset));
}