function panels_uninstall in Panels 5.2
Same name and namespace in other branches
- 5 panels.install \panels_uninstall()
- 6.3 panels.install \panels_uninstall()
- 6.2 panels.install \panels_uninstall()
File
- ./
panels.install, line 179
Code
function panels_uninstall() {
switch ($GLOBALS['db_type']) {
case 'pgsql':
db_query("DROP SEQUENCE {panels_page}_pid_seq");
db_query("DROP SEQUENCE {panels_pane}_pid_seq");
db_query("DROP SEQUENCE {panels_display}_did_seq");
db_query("DROP TABLE {panels_display}");
db_query("DROP TABLE {panels_pane}");
db_query("DROP TABLE {panels_page}");
db_query("DROP TABLE {panels_object_cache}");
break;
case 'mysql':
case 'mysqli':
db_query("DROP TABLE IF EXISTS {panels_display}");
db_query("DROP TABLE IF EXISTS {panels_pane}");
db_query("DROP TABLE IF EXISTS {panels_page}");
db_query("DROP TABLE IF EXISTS {panels_object_cache}");
break;
}
}