Manual:Hooks/TitleGetRestrictionTypes

From MediaWiki.org
Jump to: navigation, search
TitleGetRestrictionTypes
Available from version 1.16.0
Allows to modify the types of protection that can be applied.

*Define function:
function fnMyHook( $title, &$types ) { ... }

*Attach hook:
$wgHooks['TitleGetRestrictionTypes'][] = 'MyExtensionHooks::someExample';
Called from: Title.php

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


[edit] Details

  • $title: The title in question.
  • &$types: The types of protection available.
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox