You are here

function og_vocab_remove_all_records in OG Vocabulary 6

API function; Remove all vocabularies of a group.

Parameters

$vid: The vocabulary id.

2 calls to og_vocab_remove_all_records()
og_vocab_nodeapi in ./og_vocab.module
Implementation of hook_nodeapi().
og_vocab_rules_action_remove_all_group in ./og_vocab.rules.inc
Action: Remove vocabulary from group.

File

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

Code

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