You are here

function user_delete_install in User Delete 6.2

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

Implementation of hook_install().

File

./user_delete.install, line 12
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;
  }
}