function _variable_realm_sort_current in Variable 7.2
Order realms by current weight.
1 string reference to '_variable_realm_sort_current'
- variable_realm_current in variable_realm/
variable_realm.module - Get active realm controllers ordered by weight.
File
- variable_realm/
variable_realm.module, line 570 - Variable API module - Realms
Code
function _variable_realm_sort_current($a, $b) {
return $a
->getWeight() - $b
->getWeight();
}