function mass_contact_schema in Mass Contact 7
Same name and namespace in other branches
- 6 mass_contact.install \mass_contact_schema()
Implements hook_schema().
File
- ./
mass_contact.install, line 14 - Install, update and uninstall functions for the Mass Contact module.
Code
function mass_contact_schema() {
$schema['mass_contact'] = array(
'description' => 'The base table for nodes.',
'fields' => array(
'cid' => array(
'description' => 'The primary id field for the category table.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'category' => array(
'description' => 'The name of the category.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'recipients' => array(
'description' => 'Field that has information about users to receive the message.',
'type' => 'text',
'size' => 'big',
'not null' => TRUE,
),
'reply' => array(
'description' => '.',
'type' => 'text',
'size' => 'big',
'not null' => TRUE,
),
'weight' => array(
'description' => 'The order this category is in.',
'type' => 'int',
'size' => 'tiny',
'unsigned' => FALSE,
'not null' => TRUE,
'default' => 0,
),
'selected' => array(
'description' => 'Whether this category is selected by default or not.',
'type' => 'int',
'size' => 'tiny',
'unsigned' => FALSE,
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'cid',
),
'unique keys' => array(
'category' => array(
'category',
),
),
);
return $schema;
}