Browse Source

Oh well, while we are adding hooks everywhere: a hook to allow expand the auto-suggest options

Signed-off-by: emanuele <[email protected]>
emanuele 12 years ago
parent
commit
2935db0fa0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Sources/Subs-Editor.php

+ 2 - 0
Sources/Subs-Editor.php

@@ -2166,6 +2166,8 @@ function AutoSuggestHandler($checkRegistered = null)
 		'versions' => 'SMFVersions',
 	);
 
+	call_integration_hook('integrate_autosuggest', array($searchTypes));
+
 	// If we're just checking the callback function is registered return true or false.
 	if ($checkRegistered != null)
 		return isset($searchTypes[$checkRegistered]) && function_exists('AutoSuggest_Search_' . $checkRegistered);