You are here

function _themekey_properties_cmp in ThemeKey 6

Function _themekey_properties_cmp().

2 string references to '_themekey_properties_cmp'
_themekey_settings_form in ./themekey_admin.inc
Function _themekey_settings_form().
_themekey_settings_submit in ./themekey_admin.inc
Function _themekey_settings_submit().

File

./themekey_build.inc, line 374

Code

function _themekey_properties_cmp($a, $b) {
  if ($a['weight'] == $b['weight']) {
    if (isset($a['property']) && isset($b['property'])) {
      return $a['property'] < $b['property'] ? -1 : 1;
    }
    else {
      return $a['path'] < $b['path'] ? -1 : 1;
    }
  }
  return $a['weight'] < $b['weight'] ? -1 : 1;
}