Extension:MobileFrontend/Hooks/EnterMobileMode
Appearance
For more information about attaching hooks, see Manual:Hooks.
For examples of other extensions using this hook, see Category:EnterMobileMode extensions.
Called when MobileFrontend enters the mobile mode (e.g. because of a mobile url, mobile device or useformat=mobile URL parameter) and can be used to get the information, that the request will be handled as a "mobile" request.
Parameters
[edit]$mobileContext: An instance ofMobileContext, which represents an extended class ofContextSource. It allows you to check the mode of mobile ('beta'or'stable') by callingMobileContext::isBetaGroupMember().