function taxonomy_vocabulary_machine_name_load
taxonomy_vocabulary_machine_name_load($name)
Return the vocabulary object matching a vocabulary machine name.
Parameters
$name: The vocabulary's machine name.
Return value
The vocabulary object with all of its metadata, if exists, FALSE otherwise. Results are statically cached.
See also
File
- modules/taxonomy/taxonomy.module, line 1379
- Enables the organization of content into categories.
Code
function taxonomy_vocabulary_machine_name_load($name) { $vocabularies = taxonomy_vocabulary_load_multiple(NULL, array('machine_name' => $name)); return reset($vocabularies); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!taxonomy!taxonomy.module/function/taxonomy_vocabulary_machine_name_load/7.x