| 1 |
<?php
|
| 2 |
// $Id$
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file Allows for muliple users to share an email address
|
| 6 |
*/
|
| 7 |
|
| 8 |
/**
|
| 9 |
* Implementation of hook_install().
|
| 10 |
*/
|
| 11 |
function sharedemail_install() {
|
| 12 |
$msg = t('WARNING: The e-mail address you are using, has already been registered on this site by another user. '.
|
| 13 |
'You should be aware that personal information such as password resets will be sent to this address. '.
|
| 14 |
'We strongly recommend changing your registered address to a different e-mail address. '.
|
| 15 |
'You can do this at any time from your account page when you login.');
|
| 16 |
variable_set('sharedemail_msg', $msg);
|
| 17 |
|
| 18 |
db_query("UPDATE {system} SET weight = -99 WHERE name = 'sharedemail'");
|
| 19 |
|
| 20 |
drupal_set_message(t('The Shared E-mail module has been installed'));
|
| 21 |
}
|
| 22 |
|
| 23 |
/**
|
| 24 |
* Implementation of hook_uninstall().
|
| 25 |
*/
|
| 26 |
function sharedemail_uninstall() {
|
| 27 |
variable_del('sharedemail_msg');
|
| 28 |
}
|