public function remote__data_widget::validate

3.x remote__data_widget.inc public remote__data_widget::validate($element, $form, &$form_state, $langcode, $delta)

Performs validation of the widgetForm.

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.

Overrides TripalFieldWidget::validate

File

tripal_ws/includes/TripalFields/remote__data/remote__data_widget.inc, line 165

Class

remote__data_widget

Code

public function validate($element, $form, &$form_state, $langcode, $delta) {
  //TODO validate the tokens, site, and query. Test that query returns data.

}