function _taxonomy_patterns_vocabulary_exists in Patterns 7.2
1 call to _taxonomy_patterns_vocabulary_exists()
- taxonomy_patterns_validate in patterns_components/
components/ taxonomy.inc
File
- patterns_components/
components/ taxonomy.inc, line 542 - Patterns component for taxonomy vocabularies and terms.
Code
function _taxonomy_patterns_vocabulary_exists($machine_name, $vocabs) {
foreach ($vocabs as $vid => $vocab) {
if (drupal_strtolower($vocab->machine_name) == drupal_strtolower($machine_name)) {
return TRUE;
}
}
return FALSE;
}