function coder_order_processors in Coder 6
Same name and namespace in other branches
- 5.2 scripts/coder_format/coder_format.inc \coder_order_processors()
- 5 scripts/coder_format/coder_format.inc \coder_order_processors()
- 6.2 scripts/coder_format/coder_format.inc \coder_order_processors()
- 7.2 scripts/coder_format/coder_format.inc \coder_order_processors()
- 7 scripts/coder_format/coder_format.inc \coder_order_processors()
Orders preprocessors by weight.
See also
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 1143
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;
}
}