function mail_edit_schema in Mail Editor 6
Same name and namespace in other branches
- 7 mail_edit.install \mail_edit_schema()
Implementation of hook_schema().
File
- ./
mail_edit.install, line 35 - Install, update and uninstall functions for the Mail Editor module.
Code
function mail_edit_schema() {
$schema['mail_edit'] = array(
'description' => '',
'fields' => array(
'description' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'description' => '',
),
'subject' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'description' => '',
),
'id' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'description' => '',
),
'language' => array(
'type' => 'varchar',
'length' => '10',
'not null' => TRUE,
'description' => '',
),
'body' => array(
'type' => 'text',
'size' => 'normal',
'description' => '',
),
),
'primary key' => array(
'id',
'language',
),
'indexes' => array(
'language' => array(
'language',
),
),
);
$schema['mail_edit_registry'] = array(
'description' => '',
'fields' => array(
'id' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'description' => '',
),
'module' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'description' => '',
),
'mailkey' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'description' => '',
),
'description' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'description' => '',
),
),
'primary key' => array(
'id',
),
);
return $schema;
}