function _biblio_contributor_usort in Bibliography Module 6.2
Same name and namespace in other branches
- 7 includes/biblio.contributors.inc \_biblio_contributor_usort()
- 7.2 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 411 - Functions related to contributors in Drupal biblio module.
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;
}