You are here

apachesolr_autocomplete.api.php in Apache Solr Autocomplete 7.2

Same filename and directory in other branches
  1. 7 apachesolr_autocomplete.api.php

File

apachesolr_autocomplete.api.php
View source
<?php

/**
 * Created by PhpStorm.
 * User: alejandrogarza
 * Date: 1/28/14
 * Time: 4:00 PM
 */

/**
 * Implements hook_apachesolr_autocomplete_suggestions_alter().
 *
 * @param $suggestions
 *   Array of suggestions.
 * @param $engine_id
 *   String identifying the engine.
 */
function apachesolr_autocomplete_apachesolr_autocomplete_suggestions_alter(&$suggestions, $engine_id) {

  #echo "Alter called for $engine_id\n";
}

/**
 * Implements hook_apachesolr_autocomplete_context_alter().
 *
 * @param $context
 */
function apachesolr_autocomplete_apachesolr_autocomplete_context_alter(&$context) {

  #echo "Alter called for context " . $context['context_id'] . "\n";
}

/**
 * Implements hook_apachesolr_autocomplete_query_alter().
 *
 * @param $query
 */
function apachesolr_autocomplete_apachesolr_autocomplete_query_alter(&$query) {

  #echo "Alter called for query\n";

  #print_r($query);
}