domain_prefix_get_prefix()
domain_prefix/domain_prefix.module, line 72
Check for existing table prefixing.
function domain_prefix_get_prefix() {
global $db_prefix;
// Check for existing table prefixing.
$prefix = NULL;
if (!empty($db_prefix)) {
if (is_array($db_prefix)) {
$prefix = $db_prefix['default'];
}
else {
$prefix = $db_prefix;
}
}
return $prefix;
}