You are here

function taxonomy_access_user_create_terms 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_user_create_terms_by_vocab()

_taxonomy_access_user_term_grants()

Related topics

2 calls to taxonomy_access_user_create_terms()
taxonomy_access_create_allowed in ./taxonomy_access.create.inc
Filter a list of term IDs to terms the user may create.
taxonomy_access_create_disallowed in ./taxonomy_access.create.inc
Check a list of term IDs for terms the user may not create.

File

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

Code

function taxonomy_access_user_create_terms() {

  // Cache the terms the current user can create.
  $terms =& drupal_static(__FUNCTION__, NULL);
  if (is_null($terms)) {
    $terms = _taxonomy_access_user_term_grants(TRUE);
  }
  return $terms;
}