X-Git-Url: https://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=docs%2Fhooks.txt;h=39cae7391ef0d541502c39160530285b70005f2c;hb=7762a0cab6b48bc542fa85a05aabb9ba43e8f417;hp=44f2551985fc665a1d24b34c893a6b8c3097888d;hpb=a2db7ce05218774ff1a94a1f936b675f34d799e5;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/hooks.txt b/docs/hooks.txt index 44f2551985..39cae7391e 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -443,6 +443,15 @@ an exception is thrown during API action execution. $apiMain: Calling ApiMain instance. $e: Exception object. +'ApiMakeParserOptions': Called from ApiParse and ApiExpandTemplates to allow +extensions to adjust the ParserOptions before parsing. +$options: ParserOptions object +$title: Title to be parsed +$params: Parameter array for the API module +$module: API module (which is also a ContextSource) +&$reset: Set to a ScopedCallback used to reset any hooks after the parse is done. +&$suppressCache: Set true if cache should be suppressed. + 'ApiOpenSearchSuggest': Called when constructing the OpenSearch results. Hooks can alter or append to the array. &$results: array with integer keys to associative arrays. Keys in associative