You are here

function _patterns_compare_keys in Patterns 6

Same name and namespace in other branches
  1. 6.2 components/node.inc \_patterns_compare_keys()
1 string reference to '_patterns_compare_keys'
node_patterns in components/node.inc

File

components/node.inc, line 384

Code

function _patterns_compare_keys($key1, $key2) {
  if ($key1 == $key2) {
    return 0;
  }
  elseif ($key1 > $key2) {
    return 1;
  }
  else {
    return -1;
  }
}