You are here

function botcha_schema in BOTCHA Spam Prevention 6

Same name and namespace in other branches
  1. 6.2 botcha.install \botcha_schema()
  2. 6.3 botcha.install \botcha_schema()
  3. 7 botcha.install \botcha_schema()
  4. 7.2 botcha.install \botcha_schema()
  5. 7.3 botcha.install \botcha_schema()

Implementation of hook_schema().

File

./botcha.install, line 13

Code

function botcha_schema() {

  // Table for assigning recipe cookbooks to the forms.
  $schema['botcha_points'] = array(
    'description' => 'This table describes which recipe cookbooks should be used to modify which forms.',
    'fields' => array(
      'form_id' => array(
        'description' => 'The form_id of the form to add a BOTCHA to.',
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      ),
      'botcha_type' => array(
        'description' => 'The recipe cookbook to use.',
        'type' => 'varchar',
        'length' => 64,
      ),
    ),
    'primary key' => array(
      'form_id',
    ),
  );
  return $schema;
}