| 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 |
}
|