You are here

function _domain_taxonomy_get_disabled_vocabulares in Domain Taxonomy 7

Same name and namespace in other branches
  1. 6 domain_taxonomy.module \_domain_taxonomy_get_disabled_vocabulares()
  2. 7.3 domain_taxonomy.module \_domain_taxonomy_get_disabled_vocabulares()
2 calls to _domain_taxonomy_get_disabled_vocabulares()
domain_taxonomy_form_alter in ./domain_taxonomy.module
domain_taxonomy_query_term_access_alter in ./domain_taxonomy.module

File

./domain_taxonomy.module, line 548

Code

function _domain_taxonomy_get_disabled_vocabulares() {
  $vocs = taxonomy_get_vocabularies();
  $items = array();
  if (count($vocs) > 0) {
    foreach ($vocs as $voc) {
      if (variable_get('domain_disable_voc_' . $voc->vid, FALSE)) {
        $items[$voc->vid] = $voc->vid;
      }
    }
  }
  return $items;
}