diff --git a/views_autocomplete_filters.api.php b/views_autocomplete_filters.api.php new file mode 100644 index 0000000..84a5b4a --- /dev/null +++ b/views_autocomplete_filters.api.php @@ -0,0 +1,25 @@ +' . t('%string returned no results. Please try something else.', array('%string' => $string)) . ''; } + // Allow modules to alter the calculated matches or programmatically change + // empty results messages. + drupal_alter('views_autocomplete_filter_matches', $matches, $string, $view); + return drupal_json_output($matches); }