so__cds_widget.inc 732 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. class so__cds_widget extends ChadoFieldWidget {
  3. // The default lable 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 = array('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. }