function spamicide_schema in Spamicide 6
Same name and namespace in other branches
- 7 spamicide.install \spamicide_schema()
Implementation of hook_schema().
File
- ./
spamicide.install, line 62 - This module provides yet another tool to eliminate spam.
Code
function spamicide_schema() {
$schema['spamicide'] = array(
'fields' => array(
'form_id' => array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
),
'form_field' => array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => 'feed_me',
),
'enabled' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
),
'removable' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 1,
),
),
'primary key' => array(
'form_id',
),
);
return $schema;
}