You are here

function og_vocab_relation_get_by_group in OG Vocabulary 7

Get all Vocabularies related to a group.

1 call to og_vocab_relation_get_by_group()
og_vocab_realtion_delete in ./og_vocab.module
Delete a relation between a group and a vocabulary and all its OG-vocabs.

File

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

Code

function og_vocab_relation_get_by_group($group_type, $gid) {
  return db_select('og_vocab_relation', 'ogr')
    ->fields('ogr')
    ->condition('group_type', $group_type)
    ->condition('gid', $gid)
    ->execute()
    ->fetchAll();
}