function views_uninstall in Views (for Drupal 7) 5
Same name and namespace in other branches
- 6.3 views.install \views_uninstall()
- 6.2 views.install \views_uninstall()
File
- ./
views.install, line 264
Code
function views_uninstall() {
if (db_table_exists('view_view')) {
db_query("DROP TABLE {view_view}");
}
if (db_table_exists('view_sort')) {
db_query("DROP TABLE {view_sort}");
}
if (db_table_exists('view_argument')) {
db_query("DROP TABLE {view_argument}");
}
if (db_table_exists('view_tablefield')) {
db_query("DROP TABLE {view_tablefield}");
}
if (db_table_exists('view_filter')) {
db_query("DROP TABLE {view_filter}");
}
if (db_table_exists('view_exposed_filter')) {
db_query("DROP TABLE {view_exposed_filter}");
}
if (db_table_exists('cache_views')) {
db_query("DROP TABLE {cache_views}");
}
}