public function EntityReference_SelectionHandler_Broken::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.
Overrides EntityReference_SelectionHandler::validateAutocompleteInput
See also
_entityreference_autocomplete_validate()
File
- plugins/
selection/ abstract.inc, line 105 - Abstraction of the selection logic of an entity reference field.
Class
- EntityReference_SelectionHandler_Broken
- A null implementation of EntityReference_SelectionHandler.
Code
public function validateAutocompleteInput($input, &$element, &$form_state, $form) {
return NULL;
}