function biblio_get_user_pubs in Bibliography Module 6
Same name and namespace in other branches
- 6.2 includes/biblio.pages.inc \biblio_get_user_pubs()
Parameters
$user:
$profile:
Return value
unknown_type
1 string reference to 'biblio_get_user_pubs'
- biblio_menu in ./
biblio.module - Implementation of hook_menu().
File
- ./
biblio.pages.inc, line 1046
Code
function biblio_get_user_pubs($user, $profile = '', $nofilters = '') {
if (isset($user->biblio_contributor_id) && !empty($user->biblio_contributor_id)) {
$pubs = biblio_db_search('author', $user->biblio_contributor_id, $profile, $nofilters);
}
elseif (isset($user->biblio_lastname) && !empty($user->biblio_lastname)) {
$pubs = biblio_db_search('author', $user->biblio_lastname, $profile, $nofilters);
}
else {
$pubs = biblio_db_search('uid', $user->uid, $profile, $nofilters);
}
return $pubs;
}