You are here

function workbench_access_taxonomy_autocomplete in Workbench Access 7

Helper function for autocompletion of taxonomy terms.

To determine if this is an access control field, we need to know the node type.

Parameters

$field_name: The name of the field being queried.

$node_type: The content type for this field instance.

$tags_typed: The data input by the user.

Return value

No return value, the taxonomy_autocomplete() fires a JSON object.

See also

workbench_access_menu_alter()

workbench_access_query_term_access_alter()

1 string reference to 'workbench_access_taxonomy_autocomplete'
workbench_access_menu in ./workbench_access.module
Implements hook_menu().

File

modules/taxonomy.workbench_access.inc, line 277
Taxonomy integration for Workbench Access.

Code

function workbench_access_taxonomy_autocomplete($field_name, $node_type, $tags_typed = '') {
  module_load_include('inc', 'taxonomy', 'taxonomy.pages');
  taxonomy_autocomplete($field_name, $tags_typed);
}