field_attach_validate

  1. drupal
    1. drupal7
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.

Übergabeparameter

$obj_type The type of $object; e.g. 'node' or 'user'.

$object The object with fields to validate.

Rückgabewert

Throws a FieldValidationException if validation errors are found.

This function is an autoloader for _field_attach_validate() in modules/field/field.attach.inc.

Verwandte Themen

▾ 3 functions call field_attach_validate()

FieldAttachTestCase::testFieldAttachValidate in modules/field/field.test
TextFieldTestCase::testTextFieldValidation in modules/field/modules/text/text.test
Test text field validation.
_field_attach_form_validate in modules/field/field.attach.inc
Perform field validation against form-submitted field values.

Code

modules/field/field.autoload.inc, line 106

<?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

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen