| 1 |
<?php
|
| 2 |
// $Id: commentmail.install,v 1.1 2007/02/10 17:27:31 timcn Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Implementation of hook_update_N().
|
| 6 |
* Changing a variable name to _mode if the old _opt exists.
|
| 7 |
*/
|
| 8 |
function commentmail_update_1() {
|
| 9 |
$ret = array();
|
| 10 |
|
| 11 |
variable_set('commentmail_mode', variable_get('commentmail_opt', 'approval'));
|
| 12 |
variable_del('commentmail_opt');
|
| 13 |
|
| 14 |
return $ret;
|
| 15 |
}
|
| 16 |
|
| 17 |
/**
|
| 18 |
* Implementation of hook_uninstall().
|
| 19 |
*/
|
| 20 |
function commentmail_uninstall() {
|
| 21 |
variable_del('commentmail_to');
|
| 22 |
variable_del('commentmail_mode');
|
| 23 |
variable_del('commentmail_mail_approve');
|
| 24 |
variable_del('commentmail_mail_notify');
|
| 25 |
}
|