You are here

function theme_apachesolr_breadcrumb_uid in Apache Solr Search 6

Same name and namespace in other branches
  1. 5.2 apachesolr_search.module \theme_apachesolr_breadcrumb_uid()
  2. 5 apachesolr_search.module \theme_apachesolr_breadcrumb_uid()
  3. 6.2 apachesolr_search.module \theme_apachesolr_breadcrumb_uid()

Return the username from $uid

1 theme call to theme_apachesolr_breadcrumb_uid()
apachesolr_search_get_username in ./apachesolr_search.module
Callback function for the 'Filter by name' facet block.

File

./apachesolr_search.module, line 1154
Provides a content search implementation for node content for use with the Apache Solr search application.

Code

function theme_apachesolr_breadcrumb_uid($uid) {
  if ($uid == 0) {
    return variable_get('anonymous', t('Anonymous'));
  }
  else {
    return db_result(db_query("SELECT name FROM {users} WHERE uid = %d", $uid));
  }
}