You are here

function apachesolr_og_group_name in Apache Solr Search 5.2

Same name and namespace in other branches
  1. 6 contrib/apachesolr_og/apachesolr_og.module \apachesolr_og_group_name()

Callback function for the 'Filter by group' facet block.

1 string reference to 'apachesolr_og_group_name'
apachesolr_og_block in contrib/apachesolr_og/apachesolr_og.module
Implementation of hook_block().

File

contrib/apachesolr_og/apachesolr_og.module, line 182
Integrates Organic Group info with Apache Solr search application.

Code

function apachesolr_og_group_name($facet, &$options) {
  if (!is_numeric($facet)) {
    $options['html'] = TRUE;
    return theme('placeholder', t('No group'));
  }
  return db_result(db_query("SELECT title FROM {node} WHERE nid = %d", $facet));
}