function taxonomy_access_autocomplete_validate in Taxonomy Access Control 7
Form element validation handler for taxonomy autocomplete fields.
See also
taxonomy_access_autocomplete()
taxonomy_access_field_widget_taxonomy_autocomplete_form_alter()
1 string reference to 'taxonomy_access_autocomplete_validate'
- _taxonomy_access_autocomplete_alter in ./
taxonomy_access.create.inc - Implements the create grant for autocomplete fields.
File
- ./
taxonomy_access.module, line 1604 - Allows administrators to specify access control for taxonomy categories.
Code
function taxonomy_access_autocomplete_validate($element, &$form_state) {
// Enforce that list grants do not filter this or subsequent validation.
taxonomy_access_disable_list();
// Add create grant handling.
module_load_include('inc', 'taxonomy_access', 'taxonomy_access.create');
_taxonomy_access_autocomplete_validate($element, $form_state);
}