You are here

function workbench_access_autocomplete_validate in Workbench Access 7

Custom form validation handler.

This function ensures that our handler is loaded properly.

1 string reference to 'workbench_access_autocomplete_validate'
taxonomy_workbench_access_default_form_alter in modules/taxonomy.workbench_access.inc
Executes a form alter on a specific FieldAPI form element.

File

./workbench_access.module, line 1637
Workbench Access module file.

Code

function workbench_access_autocomplete_validate($element, &$form_state) {
  $active = workbench_access_get_active_tree();
  $scheme = $active['access_scheme'];
  $function = 'workbench_access_' . $scheme . '_autocomplete_validate';
  if (function_exists($function)) {
    $function($element, $form_state);
  }
}