You are here

function _domain_prefix_sort in Domain Access 6.2

Same name and namespace in other branches
  1. 5 domain_prefix/domain_prefix.module \_domain_prefix_sort()

Helper sort function

2 string references to '_domain_prefix_sort'
domain_prefix_form in domain_prefix/domain_prefix.admin.inc
The table prefixing page for a domain.
domain_prefix_get_tables in domain_prefix/domain_prefix.admin.inc
Get the tables with the active prefix

File

domain_prefix/domain_prefix.admin.inc, line 42
Admin page functions for selective table prefixing for use with Domain Access.

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']);
}