public function TripalField::validate
3.x TripalField.inc | public TripalField::validate($entity_type, $entity, $langcode, $items, &$errors) |
Perform validation of the field regardless how it is updated.
Any errors encountered should be indicated by adding a value to the $errors array according to the instructions below.
Parameters
$entity_type: The type of $entity. @param $entity The entity for the operation. @param $langcode The language associated with $items. @param $items $entity->{$field['field_name']}[$langcode], or an empty array if unset. @param $errors The array of errors (keyed by field name, language code, and delta) that have already been reported for the entity. The function should add its errors to this array. Each error is an associative array with the following keys and values:
- error: An error code (should be a string prefixed with the module name).
- message: The human readable message to be displayed.
7 methods override TripalField::validate()
- data__accession::validate in tripal_chado/
includes/ TripalFields/ data__accession/ data__accession.inc - obi__organism::validate in tripal_chado/
includes/ TripalFields/ obi__organism/ obi__organism.inc - operation__phylotree_vis::validate in tripal_chado/
includes/ TripalFields/ operation__phylotree_vis/ operation__phylotree_vis.inc - sbo__database_cross_reference::validate in tripal_chado/
includes/ TripalFields/ sbo__database_cross_reference/ sbo__database_cross_reference.inc - sbo__relationship::validate in tripal_chado/
includes/ TripalFields/ sbo__relationship/ sbo__relationship.inc
File
- tripal/
includes/ TripalFields/ TripalField.inc, line 475
Class
Code
public function validate($entity_type, $entity, $langcode, $items, &$errors) {
}