uo__unit_widget.inc 547 B

123456789101112131415161718192021
  1. <?php
  2. class uo__unit_widget extends ChadoFieldWidget {
  3. // The default lable for this field.
  4. public static $default_label = 'Unit';
  5. // The list of field types for which this formatter is appropriate.
  6. public static $field_types = array('uo__unit');
  7. /**
  8. * @see TripalFieldWidget::form()
  9. */
  10. public function form(&$widget, &$form, &$form_state, $langcode, $items, $delta, $element) {
  11. parent::form($widget, $form, $form_state, $langcode, $items, $delta, $element);
  12. // TODO: add a form for changing the unit types.
  13. }
  14. }