function coder_order_processors in Coder 5.2
Same name and namespace in other branches
- 5 scripts/coder_format/coder_format.inc \coder_order_processors()
- 6.2 scripts/coder_format/coder_format.inc \coder_order_processors()
- 6 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 1131
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;
}
}