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

Contents of /contributions/modules/user_register_notify/user_register_notify.install

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


Revision 1.2 - (show annotations) (download) (as text)
Sat Dec 6 01:17:17 2008 UTC (11 months, 3 weeks ago) by rmiddle
Branch: MAIN
CVS Tags: DRUPAL-6--1-9, DRUPAL-6--1-10, DRUPAL-6--1-11, HEAD
Changes since 1.1: +28 -0 lines
File MIME type: text/x-php
[#294921] Added weight for the module to force it to happen last to make sure all the fields are set.  Also [#290144] by deekayen - send email to roles - With a little clean up of the setting box to make it flow a little better.
1 <?php
2 // $Id$
3 // Built for Drupal 6
4 /**
5 * @file
6 * Notifies administrator of new user registrations.
7 */
8
9
10 /**
11 * Implementation of hook_install().
12 */
13 function user_register_notify_install() {
14 // Set the weight of the module lower so modules like logintobogie don't cause problmes.
15 db_query("UPDATE {system} SET weight = 1002 WHERE name = 'user_register_notify'");
16 }
17
18 /**
19 * Implementation of hook_uninstall().
20 */
21 function user_register_notify_uninstall() {
22 variable_del('user_register_notify_type');
23 variable_del('user_register_notify_mailto');
24 variable_del('user_register_notify_roles');
25 variable_del('user_register_notify_subject');
26 variable_del('user_register_notify_body');
27 variable_del('user_register_notify_alert');
28 }

  ViewVC Help
Powered by ViewVC 1.1.2