User:Florianschmidtwelzow/MobileFrontend/Hooks

The MobileFrontend Extension introduces some new hooks, but they are all undocumented. This page tries to document these hooks. Please notice: It's possible, that the Hooks will be replaced or removed in a newer version of MobileFrontend.

Details
This hook os called before the content parsed by MobileFormatter.

Usage
Example usage in ZeroBanner

Details
The array $modules, submitted with this hook, contains a bunch of JavaScript modules which will be loaded. You can change, remove or add modules with this hook.

Usage
To add the module test23 to MobileFrontend, you can use the following code:

Details
Notice: This Hook is depreacted and will be removed in a later version of MobileFrontend. Please use RessourceLoader to load your Module for mobile deveices.
 * $out: OutputPage
 * $mode: String, such as 'alpha', 'beta', 'stable'

Details

 * $out: OutputPage

Details

 * $template: MinervaTemplate

Details

 * &$output: OutputPage
 * $ctx: MobileContext
 * $revisions: array of revisions to compare ($revisions[1] -> Revision; $revisions[0] -> previous Revision)

EnterMobileMode
follows

GetMobileUrl
follows

SpecialWatchlistQuery
follows