You are here

function _biblio_get_user_pubs in Bibliography Module 5

1 call to _biblio_get_user_pubs()
biblio_user in ./biblio.module
Implementation of hook_user().
1 string reference to '_biblio_get_user_pubs'
biblio_menu in ./biblio.module
Implementation of hook_menu().

File

./biblio.module, line 3872

Code

function _biblio_get_user_pubs($user, $profile = '') {
  switch (isset($user->biblio_profile_uid) ? $user->biblio_profile_uid : variable_get('biblio_profile_uid', 'uid')) {
    case 'lastname':
      $pubs = biblio_db_search('author', $user->biblio_lastname, $profile);
      break;
    case 'uid_lastname':
      $pubs = biblio_db_search('uid', $user->uid, 'author', $user->biblio_lastname, $profile);
      break;
    case 'uid':
    default:
      $pubs = biblio_db_search('uid', $user->uid, $profile);
  }
  return $pubs;
}