function domain_prefix_get_prefix in Domain Access 6.2
Same name and namespace in other branches
- 5 domain_prefix/domain_prefix.module \domain_prefix_get_prefix()
Check for existing table prefixing.
1 call to domain_prefix_get_prefix()
- domain_prefix_get_tables in domain_prefix/
domain_prefix.admin.inc - Get the tables with the active prefix
File
- domain_prefix/
domain_prefix.module, line 158 - Interface for selective table prefixing for use with Domain Access.
Code
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;
}