You are here

function user_delete_install in User Delete 5

Same name and namespace in other branches
  1. 6.2 user_delete.install \user_delete_install()
  2. 6 user_delete.install \user_delete_install()

Implementation of hook_install().

File

./user_delete.install, line 14
User delete - installation routines

Code

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