sharedemail.install in Shared Email 6
Same filename and directory in other branches
Allows for muliple users to share an email address
File
sharedemail.installView source
<?php
/**
* @file Allows for muliple users to share an email address
*/
/**
* Implementation of hook_install().
*/
function sharedemail_install() {
$msg = t('WARNING: The e-mail address you are using has already been registered on this site by another user. ' . 'You should be aware that personal information such as password resets will be sent to this address. ' . 'We strongly recommend changing your registered address to a different email address. ' . 'You can do this at any time from your account page when you login.');
variable_set('sharedemail_msg', $msg);
db_query("UPDATE {system} SET weight = -99 WHERE name = 'sharedemail'");
drupal_set_message(t('The Shared Email module has been installed'));
}
/**
* Implementation of hook_uninstall().
*/
function sharedemail_uninstall() {
variable_del('sharedemail_msg');
}
Functions
Name | Description |
---|---|
sharedemail_install | Implementation of hook_install(). |
sharedemail_uninstall | Implementation of hook_uninstall(). |