You are here

20 August 2011

How to get taxonomy vocabulary id(vid) by machine name in Drupal.

Source code viewer
  1. $vid = taxonomy_vocabulary_machine_name_load('vocabulary_machine_name');
  2. $vid = $vid->vid;
Programming Language: PHP