Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db storage for mailgroup settings, validation
- Loading branch information
Showing
2 changed files
with
97 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
|
||
// $Id$ | ||
|
||
/** | ||
* Implementation of hook_install(). | ||
*/ | ||
function mailgroup_install() { | ||
drupal_install_schema('mailgroup'); | ||
} | ||
|
||
/** | ||
* Implementation of hook_uninstall(). | ||
*/ | ||
function mailgroup_uninstall() { | ||
drupal_uninstall_schema('mailgroup'); | ||
} | ||
|
||
/** | ||
* Implementation of hook_schema | ||
*/ | ||
function mailgroup_schema() { | ||
$schema['mailgroup'] = array( | ||
'description' => t('Mailgroup table'), | ||
'fields' => array( | ||
'id' => array( | ||
'description' => t('The ID of the group_nid (og).'), | ||
'type' => 'int', | ||
'unsigned' => TRUE, | ||
'not null' => TRUE, | ||
'default' => 0, | ||
), | ||
'prefix' => array( | ||
'type' => 'varchar', | ||
'length' => '255', | ||
'not null' => TRUE, | ||
), | ||
'subject' => array( | ||
'type' => 'varchar', | ||
'length' => '255', | ||
'not null' => TRUE, | ||
), | ||
'nodetype' => array( | ||
'type' => 'varchar', | ||
'length' => '255', | ||
'not null' => TRUE, | ||
), | ||
), | ||
'primary key' => array('id'), | ||
); | ||
|
||
return $schema; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters