You are here

function spamicide_schema in Spamicide 7

Same name and namespace in other branches
  1. 6 spamicide.install \spamicide_schema()

Implements hook_schema().

File

./spamicide.install, line 61
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;
}