apachesolr_views.module in Apache Solr Views 6
Same filename and directory in other branches
Provides Views Implementation for the ApacheSolr Search Integration project drupal.org/project/apachesolr
File
apachesolr_views.moduleView 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
Name | 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 |