Since: 2.0
handle_field_validation
Validates the value of a field.
Function Definition
public function handle_field_validation ( &$value, $field, $object_fields, $fields, $pod, $params )
Source File: /pods/classes/PodsAPI.php
Parameters
Parameter | Type | Details |
---|---|---|
$value | (mixed) | The value to validate |
$field | (string) | Field to use for validation |
$object_fields | (array) | Fields of the object we're validating |
$fields | (array) | Array of all fields data |
$pod | (array) | Array of pod data |
$params | (array|object) | Extra parameters to pass to the validation function of the field. |
Returns
(array|bool)