function taxonomy_access_create_disallowed in Taxonomy Access Control 7
Check a list of term IDs for terms the user may not create.
Parameters
array $tids: The array of term IDs.
Return value
array An array of disallowed term IDs.
Related topics
4 calls to taxonomy_access_create_disallowed()
- taxonomy_access_autocomplete in ./
taxonomy_access.create.inc  - Autocomplete menu callback: filter allowed terms by create, not list.
 - _taxonomy_access_autocomplete_alter in ./
taxonomy_access.create.inc  - Implements the create grant for autocomplete fields.
 - _taxonomy_access_disallowed_changes in ./
taxonomy_access.create.inc  - Helper function to check for term reference changes disallowed by create.
 - _taxonomy_access_options_alter in ./
taxonomy_access.create.inc  - Implements the create grant for options widgets.
 
File
- ./
taxonomy_access.create.inc, line 278  - Implements the Add Tag (create) grant on editing forms.
 
Code
function taxonomy_access_create_disallowed(array $tids) {
  $all_allowed = taxonomy_access_user_create_terms();
  // If the user's create grant info is exactly TRUE, no terms are disallowed.
  if ($all_allowed === TRUE) {
    return array();
  }
  return array_diff($tids, $all_allowed);
}