| 1 |
<?php |
<?php |
| 2 |
// $Id: wordfilter.install,v 1.4.2.1.2.1 2008/04/22 13:14:04 jaydub Exp $ |
// $Id: wordfilter.install,v 1.4.2.1.2.2 2008/05/21 05:41:02 jaydub Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_schema(). |
* Implementation of hook_schema(). |
| 6 |
*/ |
*/ |
| 7 |
function wordfilter_schema() { |
function wordfilter_schema() { |
| 8 |
$schema['wordfilter'] = array( |
$schema['wordfilter'] = array( |
| 9 |
'description' => t('The {wordfilter} table stores user ids of users and other users that they have chosen to ignore.'), |
'description' => 'The {wordfilter} table stores user ids of users and other users that they have chosen to ignore.', |
| 10 |
'fields' => array( |
'fields' => array( |
| 11 |
'id' => array( |
'id' => array( |
| 12 |
'description' => t('The ID of the wordfilter word pair.'), |
'description' => 'The ID of the wordfilter word pair.', |
| 13 |
'type' => 'serial', |
'type' => 'serial', |
| 14 |
'not null' => TRUE, |
'not null' => TRUE, |
| 15 |
), |
), |
| 16 |
'words' => array( |
'words' => array( |
| 17 |
'description' => t('The word to filter.'), |
'description' => 'The word to filter.', |
| 18 |
'type' => 'text', |
'type' => 'text', |
| 19 |
'not null' => TRUE, |
'not null' => TRUE, |
| 20 |
), |
), |
| 21 |
'replacement' => array( |
'replacement' => array( |
| 22 |
'description' => t('The replacement word to filter with.'), |
'description' => 'The replacement word to filter with.', |
| 23 |
'type' => 'varchar', |
'type' => 'varchar', |
| 24 |
'length' => 255, |
'length' => 255, |
| 25 |
'not null' => TRUE, |
'not null' => TRUE, |
| 26 |
'default' => '', |
'default' => '', |
| 27 |
), |
), |
| 28 |
'standalone' => array( |
'standalone' => array( |
| 29 |
'description' => t('A boolean to indicate if the word filtering should only be done if the word is not part of another word.'), |
'description' => 'A boolean to indicate if the word filtering should only be done if the word is not part of another word.', |
| 30 |
'type' => 'int', |
'type' => 'int', |
| 31 |
'size' => 'tiny', |
'size' => 'tiny', |
| 32 |
'not null' => TRUE, |
'not null' => TRUE, |