You are here

function apachesolr_search_get_username in Apache Solr Search 5

Same name and namespace in other branches
  1. 5.2 apachesolr_search.module \apachesolr_search_get_username()
  2. 6 apachesolr_search.module \apachesolr_search_get_username()
  3. 6.2 apachesolr_search.module \apachesolr_search_get_username()
1 string reference to 'apachesolr_search_get_username'
apachesolr_search_block in ./apachesolr_search.module
Implementation of hook_block().

File

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

Code

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