summaryrefslogtreecommitdiff
path: root/modules/contact
diff options
context:
space:
mode:
Diffstat (limited to 'modules/contact')
-rw-r--r--modules/contact/contact.install46
1 files changed, 40 insertions, 6 deletions
diff --git a/modules/contact/contact.install b/modules/contact/contact.install
index 8e3e2298d..523badcfe 100644
--- a/modules/contact/contact.install
+++ b/modules/contact/contact.install
@@ -26,13 +26,47 @@ function contact_uninstall() {
*/
function contact_schema() {
$schema['contact'] = array(
+ 'description' => t('Contact form category settings.'),
'fields' => array(
- 'cid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE),
- 'category' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''),
- 'recipients' => array('type' => 'text', 'not null' => TRUE, 'size' => 'big'),
- 'reply' => array('type' => 'text', 'not null' => TRUE, 'size' => 'big'),
- 'weight' => array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'),
- 'selected' => array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny')
+ 'cid' => array(
+ 'type' => 'serial',
+ 'unsigned' => TRUE,
+ 'not null' => TRUE,
+ 'description' => t('Primary Key: Unique category ID.'),
+ ),
+ 'category' => array(
+ 'type' => 'varchar',
+ 'length' => 255,
+ 'not null' => TRUE,
+ 'default' => '',
+ 'description' => t('Category name.'),
+ ),
+ 'recipients' => array(
+ 'type' => 'text',
+ 'not null' => TRUE,
+ 'size' => 'big',
+ 'description' => t('Comma-separated list of recipient e-mail addresses.'),
+ ),
+ 'reply' => array(
+ 'type' => 'text',
+ 'not null' => TRUE,
+ 'size' => 'big',
+ 'description' => t('Text of the auto-reply message.'),
+ ),
+ 'weight' => array(
+ 'type' => 'int',
+ 'not null' => TRUE,
+ 'default' => 0,
+ 'size' => 'tiny',
+ 'description' => t("The category's weight."),
+ ),
+ 'selected' => array(
+ 'type' => 'int',
+ 'not null' => TRUE,
+ 'default' => 0,
+ 'size' => 'tiny',
+ 'description' => t('Flag to indicate whether or not category is selected by default. (1 = Yes, 0 = No)'),
+ ),
),
'unique keys' => array('category' => array('category')),
'primary key' => array('cid'),