user_register_notify.install in User registration notification 5
Same filename and directory in other branches
Notifies administrator of new user registrations.
File
user_register_notify.installView source
<?php
// Built for Drupal 5
/**
* @file
* Notifies administrator of new user registrations.
*/
/**
* Implementation of hook_install().
*/
function user_register_notify_install() {
// Set the weight of the module lower so modules like logintobogie don't cause problmes.
db_query("UPDATE {system} SET weight = 1002 WHERE name = 'user_register_notify'");
}
/**
* Implementation of hook_uninstall().
*/
function user_register_notify_uninstall() {
variable_del('user_register_notify_type');
variable_del('user_register_notify_mailto');
variable_del('user_register_notify_roles');
variable_del('user_register_notify_subject');
variable_del('user_register_notify_body');
variable_del('user_register_notify_alert');
}Functions
|
Name |
Description |
|---|---|
| user_register_notify_install | Implementation of hook_install(). |
| user_register_notify_uninstall | Implementation of hook_uninstall(). |