You are here

function _taxonomy_access_defaults in Taxonomy Access Control 5

Same name and namespace in other branches
  1. 5.2 taxonomy_access.module \_taxonomy_access_defaults()

Provide default values for term_access_defaults

2 calls to _taxonomy_access_defaults()
taxonomy_access_taxonomy in ./taxonomy_access.module
Implementation of hook_taxonomy Hook_taxonomy is called when changes are made to the taxonomy structure
_taxonomy_access_update_db in ./taxonomy_access.module

File

./taxonomy_access.module, line 653
Allows administrators to specify how each category (in the taxonomy) can be used by various roles.

Code

function _taxonomy_access_defaults($vid, $rid) {
  if ($rid == 1 || $rid == 2) {
    return array(
      $vid,
      $rid,
      1,
      0,
      0,
      1,
      1,
    );
  }
  else {
    return array(
      $vid,
      $rid,
      0,
      0,
      0,
      0,
      0,
    );
  }
}