You are here

function og_vocab_remove_record in OG Vocabulary 6

API function; Remove a record from the {og_vocab} table.

Parameters

$vid: The vocabulary id.

2 calls to og_vocab_remove_record()
og_vocab_rules_action_remove_vocab in ./og_vocab.rules.inc
Action: Remove vocabulary from group.
og_vocab_taxonomy in ./og_vocab.module
Implementation of hook_taxonomy().

File

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

Code

function og_vocab_remove_record($vid) {
  $sql = "DELETE FROM {og_vocab} WHERE vid = %d";
  db_query($sql, $vid);
}