Tripal
|
Public Member Functions | |
form (&$widget, &$form, &$form_state, $langcode, $items, $delta, $element) | |
validate ($element, $form, &$form_state, $langcode, $delta) | |
![]() | |
__construct ($field, $instance=NULL) | |
validateDefaults ($element, $form, &$form_state, $langcode, $delta) | |
submit ($form, &$form_state, $entity_type, $entity, $langcode, $delta) | |
theme ($element) | |
Static Public Attributes | |
static | $default_label = 'Data Source' |
static | $field_types = ['local__source_data'] |
![]() | |
static | $default_label = 'Tripal Field.' |
static | $field_types = ['no_widget'] |
Additional Inherited Members | |
![]() | |
static | info () |
local__source_data_widget::form | ( | & | $widget, |
& | $form, | ||
& | $form_state, | ||
$langcode, | |||
$items, | |||
$delta, | |||
$element | |||
) |
Reimplemented from TripalFieldWidget.
local__source_data_widget::validate | ( | $element, | |
$form, | |||
& | $form_state, | ||
$langcode, | |||
$delta | |||
) |
Performs validation of the widget form.
Use this validate to ensure that form values are entered correctly.
The 'value' key of this field must be set in the $form_state['values'] array anytime data is entered by the user. It may be the case that there are other fields for helping select a value. In the end those helper fields must be used to set the 'value' field.
TROUBLESHOOTING: If your widget doesn't appear to be saving data, check the following:
chado-[tablename]__[columnname]
keys for all chado columns. Look at the storage backend for more documentation. Reimplemented from TripalFieldWidget.