function _biblio_contributor_usort in Bibliography Module 7.2
Same name and namespace in other branches
- 6.2 includes/biblio.contributors.inc \_biblio_contributor_usort()
- 7 includes/biblio.contributors.inc \_biblio_contributor_usort()
1 string reference to '_biblio_contributor_usort'
- _biblio_contributor_sort in includes/
biblio.contributors.inc
File
- includes/
biblio.contributors.inc, line 232
Code
function _biblio_contributor_usort($a, $b) {
if (empty($a['name'])) {
return 1;
}
if (empty($b['name'])) {
return -1;
}
return $a['rank'] < $b['rank'] ? -1 : 1;
}