| 5 user.module | _user_sort($a, $b) |
| 6 user.module | _user_sort($a, $b) |
| 7 user.module | _user_sort($a, $b) |
2 string references to '_user_sort'
File
- modules/
user/ user.module, line 1997 - Enables the user registration and login system.
Code
function _user_sort($a, $b) {
$a = (array) $a + array(
'weight' => 0,
'title' => '',
);
$b = (array) $b + array(
'weight' => 0,
'title' => '',
);
return $a['weight'] < $b['weight'] ? -1 : ($a['weight'] > $b['weight'] ? 1 : ($a['title'] < $b['title'] ? -1 : 1));
}
Login or register to post comments