Extension:StructuredDiscussions/Hooks/FlowAddModules

From Linux Web Expert

Revision as of 16:01, 13 September 2020 by imported>SamanthaNguyen (update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

FlowAddModules
Available from version ???
Allow other extensions to register ResourceLoader modules
Define function:
public static function onFlowAddModules( OutputPage $output ) { ... }
Attach hook:
$wgHooks['FlowAddModules'][] = 'MyExtensionHooks::onFlowAddModules';
Called from:File(s): StructuredDiscussions / includes/View.php
Function(s): addModules

For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:FlowAddModules extensions.

Details

  • $output: An instance of OutputPage