db_table_exists

Versions
5 – 7
db_table_exists($table)

Check if a table exists.

Related topics

▾ 8 functions call db_table_exists()

db_create_table in includes/database/database.inc
Create a new table from a Drupal table definition.
drupal_uninstall_schema in includes/common.inc
Remove all tables that a module defines in its hook_schema().
field_sql_storage_schema in modules/field/modules/field_sql_storage/field_sql_storage.install
Implement hook_schema().
filter_update_7005 in modules/filter/filter.install
Integrate text formats with the user permissions system.
system_update_7008 in modules/system/system.install
Use the poll_choice primary key to record votes in poll_votes rather than the choice order. Rename chorder to weight.
system_update_7035 in modules/system/system.install
Migrate upload module files to the new {file} table.
update_fix_d7_requirements in includes/update.inc
Perform Drupal 6.x to 7.x updates that are required for update.php to function properly.
update_info_page in ./update.php

Code

includes/database/database.inc, line 2321

<?php
function db_table_exists($table) {
  return Database::getConnection()->schema()->tableExists($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.