Created
January 4, 2012 16:59
-
-
Save matiskay/1560974 to your computer and use it in GitHub Desktop.
Get the vocabulary id using the machine name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function util_get_vid($machine_name) { | |
$voc = taxonomy_vocabulary_machine_name_load($machine_name); | |
return $voc->vid; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment