function regcode_og_schema in Registration codes 6
Same name and namespace in other branches
- 6.2 regcode_og/regcode_og.install \regcode_og_schema()
Implementation of hook_schema()
File
- regcode_og/
regcode_og.install, line 22
Code
function regcode_og_schema() {
$schema['regcode_og'] = array(
'description' => t('Registration code organic group assignment information'),
'fields' => array(
'id' => array(
'description' => t('Rule ID'),
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'disp-width' => '11',
),
'category' => array(
'description' => t('Category of regcode used'),
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'default' => '',
),
'og' => array(
'description' => t('Organic Group ID'),
'type' => 'int',
'unsigned' => TRUE,
'disp-width' => '11',
),
),
'primary key' => array(
'id',
),
);
return $schema;
}