You are here

user_delete.install in User Delete 5

Same filename and directory in other branches
  1. 6.2 user_delete.install
  2. 6 user_delete.install

User delete - installation routines

@author Stefan Auditor <stefan.auditor@erdfisch.de>

File

user_delete.install
View source
<?php

/**
 * @file
 * User delete - installation routines
 *
 * @author
 * Stefan Auditor <stefan.auditor@erdfisch.de>
 */

/**
 * Implementation of hook_install().
 */
function user_delete_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("UPDATE {system} SET weight=-1 WHERE name='user_delete'");
      break;
    case 'pgsql':
      db_query("UPDATE {system} SET weight=-1 WHERE name='user_delete'");
      break;
  }
}

/**
 * Implementation of hook_uninstall().
 */
function user_delete_uninstall() {
  variable_del('user_delete_redirect');
  variable_del('user_delete_backup');
  variable_del('user_delete_backup_period');
  variable_del('user_delete_default_action');
}

Functions

Namesort descending Description
user_delete_install Implementation of hook_install().
user_delete_uninstall Implementation of hook_uninstall().