| Versionen | |
|---|---|
| drupal7 | field_attach_validate($obj_type, &$object) |
Perform field validation against the field data in an object.
This function does not perform field widget validation on form submissions. It is intended to be called during API save operations. Use field_attach_form_validate() to validate form submissions.
$obj_type The type of $object; e.g. 'node' or 'user'.
$object The object with fields to validate.
Throws a FieldValidationException if validation errors are found.
This function is an autoloader for _field_attach_validate() in modules/field/field.attach.inc.
modules/
<?php
function field_attach_validate($obj_type, &$object) {
require_once DRUPAL_ROOT . '/modules/field/field.attach.inc';
return _field_attach_validate($obj_type, $object);
}
?>
Kommentare
Kommentar hinzufügen