/[drupal]/contributions/modules/sharedemail/sharedemail.install
ViewVC logotype

Contents of /contributions/modules/sharedemail/sharedemail.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Sat May 23 17:18:56 2009 UTC (6 months ago) by aufumy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +21 -20 lines
File MIME type: text/x-php
updating head to DRUPAL-6--1-1
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 }

  ViewVC Help
Powered by ViewVC 1.1.2