You are here

function coder_order_processors in Coder 5

Same name and namespace in other branches
  1. 5.2 scripts/coder_format/coder_format.inc \coder_order_processors()
  2. 6.2 scripts/coder_format/coder_format.inc \coder_order_processors()
  3. 6 scripts/coder_format/coder_format.inc \coder_order_processors()
  4. 7.2 scripts/coder_format/coder_format.inc \coder_order_processors()
  5. 7 scripts/coder_format/coder_format.inc \coder_order_processors()

Orders preprocessors by weight.

1 string reference to 'coder_order_processors'
coder_exec_processors in scripts/coder_format/coder_format.inc
Execute special tasks on source code.

File

scripts/coder_format/coder_format.inc, line 796

Code

function coder_order_processors($a, $b) {
  if (isset($a['#weight']) && isset($b['#weight'])) {
    return $a['#weight'] - $b['#weight'];
  }
  else {
    return isset($a['#weight']) ? false : true;
  }
}