so__cds_widget.inc 728 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. class so__cds_widget extends ChadoFieldWidget {
  3. // The default label for this field.
  4. public static $default_label = 'Coding Sequence';
  5. // The list of field types for which this formatter is appropriate.
  6. public static $field_types = ['so__cds'];
  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: add a widget...
  14. }
  15. /**
  16. *
  17. * @see TripalFieldWidget::submit()
  18. */
  19. public function submit($form, &$form_state, $entity_type, $entity, $langcode, $delta) {
  20. $field_name = $this->field['field_name'];
  21. }
  22. }