You are here

mpac.pages.inc in Multi-path autocomplete 8

Page callbacks for module mpac.

File

mpac.pages.inc
View source
<?php

/**
 * @file
 * Page callbacks for module mpac.
 */
use Symfony\Component\HttpFoundation\JsonResponse;

/**
 * Page callback: Outputs JSON for autocomplete suggestions.
 *
 * @param $type
 *   The type of data to return.
 */
function mpac_autocomplete($type) {
  $matches = array();
  return new JsonResponse($matches);
}

Functions

Namesort descending Description
mpac_autocomplete Page callback: Outputs JSON for autocomplete suggestions.