You are here

function taxonomy_access_user_create_defaults in Taxonomy Access Control 7

Retrieve terms that the current user may create.

Return value

array|true An array of term IDs, or TRUE if the user may create all terms.

See also

_taxonomy_access_create_defaults()

Related topics

1 call to taxonomy_access_user_create_defaults()
taxonomy_access_create_default_allowed in ./taxonomy_access.create.inc
Filter a list of vocab IDs to those in which the user may create by default.

File

./taxonomy_access.create.inc, line 260
Implements the Add Tag (create) grant on editing forms.

Code

function taxonomy_access_user_create_defaults() {

  // Cache the terms the current user can create.
  static $vids = NULL;
  if (is_null($vids)) {
    $vids = _taxonomy_access_create_defaults();
  }
  return $vids;
}