| 25 |
'not null' => TRUE, |
'not null' => TRUE, |
| 26 |
'default' => '', |
'default' => '', |
| 27 |
), |
), |
| 28 |
|
'language' => array( |
| 29 |
|
'description' => 'The {languages}.language of this word to filter.', |
| 30 |
|
'type' => 'varchar', |
| 31 |
|
'length' => 12, |
| 32 |
|
'not null' => TRUE, |
| 33 |
|
'default' => '', |
| 34 |
|
), |
| 35 |
'standalone' => array( |
'standalone' => array( |
| 36 |
'description' => '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.', |
| 37 |
'type' => 'int', |
'type' => 'int', |
| 77 |
} |
} |
| 78 |
|
|
| 79 |
/** |
/** |
| 80 |
|
* Update function to add a language column to the wordfilter |
| 81 |
|
* table so that words and replacement words can be set on |
| 82 |
|
* a per language basis |
| 83 |
|
*/ |
| 84 |
|
function wordfilter_update_6100() { |
| 85 |
|
$ret = array(); |
| 86 |
|
db_add_field($ret, 'wordfilter', 'language', array('type' => 'varchar', 'length' => 12, 'not null' => TRUE, 'default' => '')); |
| 87 |
|
return $ret; |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
/** |
| 91 |
* Implementation of hook_uninstall(). |
* Implementation of hook_uninstall(). |
| 92 |
*/ |
*/ |
| 93 |
function wordfilter_uninstall() { |
function wordfilter_uninstall() { |