| 7 taxonomy.module | taxonomy_vocabulary_machine_name_load($name) |
| 8 taxonomy.module | 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
3 calls to taxonomy_vocabulary_machine_name_load()
1 string reference to 'taxonomy_vocabulary_machine_name_load'
File
- modules/
taxonomy/ taxonomy.module, line 1261 - 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);
}
Login or register to post comments
Comments
Output of print_r
stdClass Object(
[vid] => 1
[name] => Tags
[machine_name] => tags
[description] => Use tags to group articles on similar topics into categories.
[hierarchy] => 0
[module] => taxonomy
[weight] => 0
[rdf_mapping] => Array
(
[rdftype] => Array
(
[0] => skos:ConceptScheme
)
[name] => Array
(
[predicates] => Array
(
[0] => dc:title
)
)
[description] => Array
(
[predicates] => Array
(
[0] => rdfs:comment
)
)
)
)