db_escape_table

  1. drupal
    1. 5 database.inc
    2. 6 database.inc
    3. 7
    4. 8
Versions
5 – 6 db_escape_table($string)
7 – 8 db_escape_table($table)

Restricts a dynamic table name to safe characters.

Only keeps alphanumeric and underscores.

Parameters

$table The table name to escape.

Return value

The escaped table name as a string.

Related topics

▾ 1 function calls db_escape_table()

DrupalDatabaseCache::getMultiple in includes/cache.inc
Return data from the persistent cache when given an array of cache IDs.

Code

includes/database/database.inc, line 2535

<?php
function db_escape_table($table) {
  return Database::getConnection()->escapeTable($table);
}
?>