function uc_stock_uninstall in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_stock/uc_stock.install \uc_stock_uninstall()
- 7.3 uc_stock/uc_stock.install \uc_stock_uninstall()
File
- uc_stock/
uc_stock.install, line 36
Code
function uc_stock_uninstall() {
switch ($GLOBALS['db_type']) {
case 'mysqli':
case 'mysql':
db_query("DROP TABLE IF EXISTS {uc_product_stock}");
break;
case 'pgsql':
db_query("DROP TABLE {uc_product_stock}");
break;
}
}