You are here

public function EntityReference_SelectionHandler::validateAutocompleteInput in Entity reference 7

Validate Input from autocomplete widget that has no Id.

Parameters

$input: Single string from autocomplete widget.

$element: The form element to set a form error.

Return value

Value of a matching entity id, or NULL if none.

See also

_entityreference_autocomplete_validate()

3 methods override EntityReference_SelectionHandler::validateAutocompleteInput()
EntityReference_SelectionHandler_Broken::validateAutocompleteInput in plugins/selection/abstract.inc
Validate Input from autocomplete widget that has no Id.
EntityReference_SelectionHandler_Generic::validateAutocompleteInput in plugins/selection/EntityReference_SelectionHandler_Generic.class.php
Implements EntityReferenceHandler::validateAutocompleteInput().
EntityReference_SelectionHandler_Views::validateAutocompleteInput in plugins/selection/EntityReference_SelectionHandler_Views.class.php
Implements EntityReferenceHandler::validateAutocompleteInput().

File

plugins/selection/abstract.inc, line 55
Abstraction of the selection logic of an entity reference field.

Class

EntityReference_SelectionHandler
@file Abstraction of the selection logic of an entity reference field.

Code

public function validateAutocompleteInput($input, &$element, &$form_state, $form);