atrblacklist_schema

Versions
6.1
atrblacklist_schema()

Implementation of hook_schema().

Code

atr/modules/atrblacklist/atrblacklist.install, line 11

<?php
function atrblacklist_schema() {
  return array(
    'atrblacklist_keyword' => array(
      'description' => 'Words or phrases that are blacklisted.',
      'fields' => array(
        'pid' => array(
          'description' => 'The {atr_profile}.pid of this record.',
          'type' => 'int',
          'unsigned' => TRUE,
          'not null' => TRUE,
        ),
        'keyword' => array(
          'description' => 'The keyword that is blacklisted.',
          'type' => 'varchar',
          'length' => 255,
          'not null' => TRUE,
        ),
        'comment' => array(
          'description' => 'A comment providing extra information about the keyword.',
          'type' => 'text',
          'size' => 'medium',
          'not null' => TRUE,
        ),
      ),
    ),
    'atrblacklist_string' => array(
      'description' => 'The strings that match blacklisted keywords.',
      'fields' => array(
        'sid' => array(
          'description' => 'The {atr_string}.sid of this record.',
          'type' => 'int',
          'unsigned' => TRUE,
          'not null' => TRUE,
        ),
        'keyword' => array(
          'description' => 'The {atrblacklist_keyword}.keyword this string matches.',
          'type' => 'varchar',
          'length' => 255,
          'not null' => TRUE,
        ),
      ),
    ),
  );
}
?>