function comment_og_schema in Comment OG 6
Implementation of hook_schema().
File
- ./
comment_og.install, line 10 - Installation hooks for comment_og.
Code
function comment_og_schema() {
$schema = array();
$schema['comment_og_node'] = array(
'description' => 'Stores comment permission settings for each group.',
'fields' => array(
'nid' => array(
'description' => 'The group\'s {og}.nid',
'type' => 'int',
'size' => 'normal',
'unsigned' => TRUE,
'not null' => TRUE,
),
'grant_nonmember_access' => array(
'description' => 'Allow non-members to post comments to this particular group',
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => (int) FALSE,
),
),
'primary key' => array(
'nid',
),
'indexes' => array(
'nid' => array(
'nid',
),
),
'foreign keys' => array(
'nid' => array(
'table' => 'node',
'columns' => array(
'nid' => 'nid',
),
),
),
);
return $schema;
}