You are here

function hook_mpac_selection_matches in Multi-path autocomplete 8

Alters the list of selection matches.

Parameters

array $matches: List of matches provided by the registered selection plugins.

string $type: Name of selection type (i.e. "path").

string $string: The string entered by the user to match against.

File

./mpac.api.php, line 61
Hooks provided by the Multi-path autocomplete module.

Code

function hook_mpac_selection_matches(&$matches, $type, $string) {
  if ($type == 'path' && isset($matches['node/1'])) {

    // Remove this item from the list.
    unset($matches['node/1']);
  }
}