You are here

function apachesolr_search_theme in Apache Solr Search 7

Same name and namespace in other branches
  1. 8 apachesolr_search.module \apachesolr_search_theme()
  2. 6.3 apachesolr_search.module \apachesolr_search_theme()
  3. 6 apachesolr_search.module \apachesolr_search_theme()
  4. 6.2 apachesolr_search.module \apachesolr_search_theme()

Implements hook_theme().

File

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

Code

function apachesolr_search_theme() {
  return array(
    /**
     * Shows the facets in blocks in the search result area
     */
    'apachesolr_search_browse_blocks' => array(
      'render element' => 'content',
    ),
    /**
     * Shows the search snippet
     */
    'apachesolr_search_snippets' => array(
      'variables' => array(
        'doc' => NULL,
        'snippets' => array(),
      ),
    ),
    /**
     * Shows a message when the search does not return any result
     */
    'apachesolr_search_noresults' => array(
      'variables' => array(),
    ),
    /**
     * Shows a list of suggestions
     */
    'apachesolr_search_suggestions' => array(
      'variables' => array(
        'links' => NULL,
      ),
    ),
    /**
     * Shows a list of results (docs) in content recommendation block
     */
    'apachesolr_search_mlt_recommendation_block' => array(
      'variables' => array(
        'docs' => NULL,
        'delta' => NULL,
      ),
    ),
  );
}