function tripal_field_instance_settings_form_validate

3.x tripal.fields.inc tripal_field_instance_settings_form_validate($element, &$form_state, $form)

Validates the TripalField instance settings form.

This function is called because the TripalField::instanceSettingsForm() adds it to the form element. By default, Drupal does not provide a validate hook for the instance settings form.

1 string reference to 'tripal_field_instance_settings_form_validate'
TripalField::instanceSettingsForm in tripal/includes/TripalFields/TripalField.inc
Provides a form for the 'Field Settings' of an instance of this field.

File

tripal/includes/tripal.fields.inc, line 455

Code

function tripal_field_instance_settings_form_validate($element, &$form_state, $form) {
  $field = $element['#field'];
  $instance = $element['#instance'];

  $field_class = $field['type'];
  if (tripal_load_include_field_class($field_class)) {
    $field = new $field_class($field, $instance);
    return $field->instanceSettingsFormValidate($form, $form_state);
  }
}