function apdqc_fast_escape_table in Asynchronous Prefetch Database Query Cache 7
Restrict a dynamic table, column or constraint name to safe characters.
Only keeps alphanumeric and underscores.
4 calls to apdqc_fast_escape_table()
- apdqc_async_data in ./
apdqc.mysql.inc - Used to get & parse async cached data.
- apdqc_boot in ./
apdqc.module - Implements hook_boot().
- apdqc_requirements in ./
apdqc.install - Implements hook_requirements().
- apdqc_run_prefetch_array in ./
apdqc.cache.inc - Prefetch data from a cache table.
File
- ./
apdqc.cache.inc, line 196 - Extends Drupal's default database cache so async queries happen.
Code
function apdqc_fast_escape_table($string) {
return preg_replace('/[^A-Za-z0-9_]+/', '', $string);
}