function og_vocab_schema in OG Vocabulary 6
Same name and namespace in other branches
- 7 og_vocab.install \og_vocab_schema()
Implementation of hook_schema().
File
- ./
og_vocab.install, line 28 - Install file for the og_vocab module.
Code
function og_vocab_schema() {
return array(
'og_vocab' => array(
'description' => t('relate group nodes to vocabularies'),
'fields' => array(
'nid' => array(
'description' => t("Node ID we are associated with"),
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'vid' => array(
'description' => t('Vocabulary ID'),
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'vid',
),
'indexes' => array(
'nid' => array(
'nid',
),
),
),
);
}