chado_linker__expression_widget.inc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. class chado_linker__expression_widget extends TripalFieldWidget {
  3. // The default lable for this field.
  4. public static $label = 'Expression';
  5. // The list of field types for which this formatter is appropriate.
  6. public static $field_types = array('chado_linker__expression');
  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. }
  14. /**
  15. * Performs validation of the widgetForm.
  16. *
  17. * Use this validate to ensure that form values are entered correctly. Note
  18. * this is different from the validate() function which ensures that the
  19. * field data meets expectations.
  20. *
  21. * @param $form
  22. * @param $form_state
  23. */
  24. public function validate($form, &$form_state, $entity_type, $entity, $langcode, $delta) {
  25. }
  26. /**
  27. *
  28. * @see TripalFieldWidget::submit()
  29. */
  30. public function submit($form, &$form_state, $entity_type, $entity, $langcode, $delta) {
  31. }
  32. }