data__protein_sequence_widget.inc

File

tripal_chado/includes/TripalFields/data__protein_sequence/data__protein_sequence_widget.inc
View source
  1. <?php
  2. class data__protein_sequence_widget extends ChadoFieldWidget {
  3. // The default lable for this field.
  4. public static $default_label = 'Protein Sequence';
  5. // The list of field types for which this formatter is appropriate.
  6. public static $field_types = array('data__protein_sequence');
  7. /**
  8. *
  9. * @see TripalFieldWidget::form()
  10. */
  11. public function form(&$widget, &$form, &$form_state, $langcode, $items, $delta, $element) {
  12. parent::form($widget, $form, $form_state, $langcode, $items, $delta, $element);
  13. // TODO: before we can create a widget we must have a way to
  14. // save another record whose table matches the same as the base base
  15. // table with the chado_storage backend getting confused as to what value
  16. // belongs to which feature record.
  17. }
  18. }