You are here

function theme_apachesolr_breadcrumb_im_og_gid in Apache Solr Search 5.2

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

Theme the breadcrumb.

File

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

Code

function theme_apachesolr_breadcrumb_im_og_gid($field) {
  $group_id = $field['#value'];
  if (!is_numeric($group_id)) {
    return t('No group');
  }
  return db_result(db_query("SELECT title FROM {node} WHERE nid = %d", $group_id));
}