Merge "Implement ChangeTagsListActive hook"

This commit is contained in:
jenkins-bot 2015-01-29 23:59:23 +00:00 committed by Gerrit Code Review
commit c38942240d
2 changed files with 8 additions and 0 deletions

View file

@ -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';

View file

@ -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';