db_drop_table

Versions
6
db_drop_table(&$ret, $table)
7
db_drop_table($table)

Drop a table.

Parameters

$table The table to be dropped.

Related topics

▾ 9 functions call db_drop_table()

drupal_uninstall_schema in includes/common.inc
Remove all tables that a module defines in its hook_schema().
field_sql_storage_field_storage_purge_field in modules/field/modules/field_sql_storage/field_sql_storage.module
Implement hook_field_storage_purge_field().
field_sql_storage_field_storage_update_field in modules/field/modules/field_sql_storage/field_sql_storage.module
Implement hook_field_storage_update_field().
node_update_7003 in modules/node/node.install
Remove the node_counter if the statistics module is uninstalled.
simpletest_clean_database in modules/simpletest/simpletest.module
Removed prefixed tables from the database that are left over from crashed tests.
system_update_7007 in modules/system/system.install
Convert to new method of storing permissions.
system_update_7044 in modules/system/system.install
Reuse the actions_aid table as sequences.
taxonomy_update_7004 in modules/taxonomy/taxonomy.install
Move taxonomy vocabulary associations for nodes to fields and field instances.
taxonomy_update_7005 in modules/taxonomy/taxonomy.install
Migrate {taxonomy_term_node} table to field storage.

Code

includes/database/database.inc, line 2375

<?php
function db_drop_table($table) {
  return Database::getConnection()->schema()->dropTable($table);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.