View source
<?php
function og_vocab_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {og_vocab} (\n nid INT NOT NULL DEFAULT 0,\n vid INT NOT NULL DEFAULT 0,\n KEY `nid` (`nid`)\n )\n /*!40100 DEFAULT CHARACTER SET utf8 */ COMMENT = 'relate group nodes to vocabularies';");
db_query("UPDATE {system} SET weight = %d WHERE name = '%s'", 5, 'og_vocab');
}
}
function og_vocab_update_1() {
db_query("UPDATE {system} SET weight = %d WHERE name = '%s'", 5, 'og_vocab');
}