You are here

function og_vocab_load_vocabularies in OG Vocabulary 5

2 calls to og_vocab_load_vocabularies()
og_vocab_nodeapi in ./og_vocab.module
Implementation of hook_nodeapi().
og_vocab_overview_vocabularies in ./og_vocab.module
List and manage vocabularies for a given group.

File

./og_vocab.module, line 322
Give each group its own system controlled vocabularies

Code

function og_vocab_load_vocabularies($nid) {
  $sql = "SELECT * FROM {og_vocab} WHERE nid = %d";
  $result = db_query($sql, $nid);
  while ($row = db_fetch_object($result)) {
    $vocabs[$row->vid] = taxonomy_get_vocabulary($row->vid);
  }
  return $vocabs ? $vocabs : array();
}