function dba_strip_prefix in Database Administration 7
3 calls to dba_strip_prefix()
- dba_empty_tables_submit in ./
dba.admin.inc - Perform export of one or more tables.
- dba_export_table in ./
dba.admin.inc - dba_view_table in ./
dba.admin.inc
File
- ./
dba.admin.inc, line 225
Code
function dba_strip_prefix($table) {
global $databases;
$dba_active_database = variable_get('dba_active_database', 'default');
if (isset($databases['default'][$dba_active_database]['prefix'])) {
$prefix = $databases['default'][$dba_active_database]['prefix'];
$table = preg_replace("/^{$prefix}/", '', $table);
}
return $table;
}