taxonomy_vocabulary_load

function taxonomy_vocabulary_load

taxonomy_vocabulary_load($vid)

Return the vocabulary object matching a vocabulary ID.

Parameters

$vid: The vocabulary's ID.

Return value

The vocabulary object with all of its metadata, if exists, FALSE otherwise. Results are statically cached.

See also

taxonomy_vocabulary_machine_name_load()

File

modules/taxonomy/taxonomy.module, line 1362
Enables the organization of content into categories.

Code

function taxonomy_vocabulary_load($vid) {
  $vocabularies = taxonomy_vocabulary_load_multiple(array($vid));
  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_load/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部