You are here

function taxonomy_access_user_list_terms in Taxonomy Access Control 7

Retrieve terms that the current user may list.

Return value

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

See also

_taxonomy_access_user_term_grants()

Related topics

1 call to taxonomy_access_user_list_terms()
taxonomy_access_query_term_access_alter in ./taxonomy_access.module
Implements hook_query_TAG_alter() for 'term_access'.

File

./taxonomy_access.module, line 1480
Allows administrators to specify access control for taxonomy categories.

Code

function taxonomy_access_user_list_terms() {

  // Cache the terms the current user can list.
  static $terms = NULL;
  if (is_null($terms)) {
    $terms = _taxonomy_access_user_term_grants(FALSE);
  }
  return $terms;
}