You are here

apachesolr_views.module in Apache Solr Views 6

Same filename and directory in other branches
  1. 7 apachesolr_views.module

Provides Views Implementation for the ApacheSolr Search Integration project drupal.org/project/apachesolr

File

apachesolr_views.module
View source
<?php

/**
 * @file
 * Provides Views Implementation for the ApacheSolr Search Integration project
 * drupal.org/project/apachesolr
 */

/**
 * Implementation of hook_views_api().
 */
function apachesolr_views_views_api() {
  return array(
    'api' => '3.0-dev',
  );
}

/**
 * Implementation of hook_theme().
 */
function apachesolr_views_theme() {
  return array(
    'apachesolr_views_term_titles' => array(
      'term_names' => array(),
    ),
  );
}

/**
 * theme function for the term titles
 */
function theme_apachesolr_views_term_titles($term_names) {
  return "<span>" . implode('</span> + <span>', $term_names) . "</span>";
}

/**
 * Implementation of hook_apachesolr_entities().
 * This is done for apachesolr_search module.
 */
function apachesolr_search_apachesolr_entities() {
  return array(
    'node' => array(
      'name' => 'Node',
      'base_field' => 'nid',
    ),
  );
}

Functions

Namesort descending Description
apachesolr_search_apachesolr_entities Implementation of hook_apachesolr_entities(). This is done for apachesolr_search module.
apachesolr_views_theme Implementation of hook_theme().
apachesolr_views_views_api Implementation of hook_views_api().
theme_apachesolr_views_term_titles theme function for the term titles