mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-27 04:06:51 +00:00
Merge "Implement ChangeTagsListActive hook"
This commit is contained in:
commit
c38942240d
|
@ -367,6 +367,13 @@ class VisualEditorHooks {
|
|||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements the ListDefinedTags and ChangeTagsListActive hooks, to populate
|
||||
* core Special:Tags with the change tags in use by VisualEditor.
|
||||
*
|
||||
* @param array $tags
|
||||
* @return bool true
|
||||
*/
|
||||
public static function onListDefinedTags( &$tags ) {
|
||||
$tags[] = 'visualeditor';
|
||||
$tags[] = 'visualeditor-needcheck';
|
||||
|
|
|
@ -80,6 +80,7 @@ $wgHooks['DoEditSectionLink'][] = 'VisualEditorHooks::onDoEditSectionLink';
|
|||
$wgHooks['GetBetaFeaturePreferences'][] = 'VisualEditorHooks::onGetBetaPreferences';
|
||||
$wgHooks['GetPreferences'][] = 'VisualEditorHooks::onGetPreferences';
|
||||
$wgHooks['ListDefinedTags'][] = 'VisualEditorHooks::onListDefinedTags';
|
||||
$wgHooks['ChangeTagsListActive'][] = 'VisualEditorHooks::onListDefinedTags';
|
||||
$wgHooks['MakeGlobalVariablesScript'][] = 'VisualEditorHooks::onMakeGlobalVariablesScript';
|
||||
$wgHooks['RedirectSpecialArticleRedirectParams'][] =
|
||||
'VisualEditorHooks::onRedirectSpecialArticleRedirectParams';
|
||||
|
|
Loading…
Reference in a new issue