mail_safety.install in Mail Safety 8
Same filename and directory in other branches
Install, update, and uninstall functions for the Mail Safety module.
File
mail_safety.installView source
<?php
/**
* @file
* Install, update, and uninstall functions for the Mail Safety module.
*/
/**
* Implements hook_schema().
*
* Define the schema's used for this module.
*/
function mail_safety_schema() {
$schema['mail_safety_dashboard'] = array(
'description' => 'Stores all mails sent by the system in this table.',
'fields' => array(
'mail_id' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'The mail id.',
),
'sent' => array(
'type' => 'int',
'default' => 0,
'description' => 'The order in which this display is loaded.',
),
'mail' => array(
'type' => 'text',
'size' => 'big',
'description' => 'A serialized mail object stored',
'serialize' => TRUE,
'serialized default' => 'a:0:{}',
),
),
'primary key' => array(
'mail_id' => 'mail_id',
),
);
return $schema;
}
Functions
Name | Description |
---|---|
mail_safety_schema | Implements hook_schema(). |