You are here

function file_aliases_uninstall in File Aliases 5

Same name and namespace in other branches
  1. 6 file_aliases.install \file_aliases_uninstall()
  2. 7 file_aliases.install \file_aliases_uninstall()

Implementation of hook_uninstall().

File

./file_aliases.install, line 26

Code

function file_aliases_uninstall() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
    case 'pgsql':
      db_query("ALTER TABLE {filefield_paths} DROP filealias");
      db_query("DELETE FROM {url_alias} WHERE src LIKE '%s'", 'filefield_paths/alias/%');
      break;
  }
}