function _domain_prefix_sort in Domain Access 5
Same name and namespace in other branches
- 6.2 domain_prefix/domain_prefix.admin.inc \_domain_prefix_sort()
Helper sort function
2 string references to '_domain_prefix_sort'
- domain_prefix_form in domain_prefix/
domain_prefix.module - The table prefixing page for a domain.
- domain_prefix_get_tables in domain_prefix/
domain_prefix.module - Get the tables with the active prefix
File
- domain_prefix/
domain_prefix.module, line 139 - Interface for selective table prefixing for use with Domain Access. For this module to work correctly, you will need to follow the INSTALL.txt instructions for editing your settings.php file.
Code
function _domain_prefix_sort($a, $b) {
$_a = str_replace('_', '', $a['tablename']);
$_b = str_replace('_', '', $b['tablename']);
if ($a['module'] == $b['module']) {
return strcmp($_a, $_b);
}
return strcmp($a['module'], $b['module']);
}