mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-23 23:13:27 +00:00
extension.json - don't use array for hooks with one handler
Change-Id: Ic1ba01c4734a6235a38fb45db85b463d0d724e4d
This commit is contained in:
parent
423062f33f
commit
a7f35df800
|
@ -83,39 +83,17 @@
|
|||
"GadgetDefinitionDeletionUpdate": "includes/content/GadgetDefinitionDeletionUpdate.php"
|
||||
},
|
||||
"Hooks": {
|
||||
"PageContentSaveComplete": [
|
||||
"GadgetHooks::onPageContentSaveComplete"
|
||||
],
|
||||
"BeforePageDisplay": [
|
||||
"GadgetHooks::beforePageDisplay"
|
||||
],
|
||||
"CodeEditorGetPageLanguage": [
|
||||
"GadgetHooks::onCodeEditorGetPageLanguage"
|
||||
],
|
||||
"ContentHandlerDefaultModelFor": [
|
||||
"GadgetHooks::onContentHandlerDefaultModelFor"
|
||||
],
|
||||
"EditFilterMergedContent": [
|
||||
"GadgetHooks::onEditFilterMergedContent"
|
||||
],
|
||||
"PageContentInsertComplete": [
|
||||
"GadgetHooks::onPageContentInsertComplete"
|
||||
],
|
||||
"UserGetDefaultOptions": [
|
||||
"GadgetHooks::userGetDefaultOptions"
|
||||
],
|
||||
"GetPreferences": [
|
||||
"GadgetHooks::getPreferences"
|
||||
],
|
||||
"ResourceLoaderRegisterModules": [
|
||||
"GadgetHooks::registerModules"
|
||||
],
|
||||
"wgQueryPages": [
|
||||
"GadgetHooks::onwgQueryPages"
|
||||
],
|
||||
"DeleteUnknownPreferences": [
|
||||
"GadgetHooks::onDeleteUnknownPreferences"
|
||||
]
|
||||
"PageContentSaveComplete": "GadgetHooks::onPageContentSaveComplete",
|
||||
"BeforePageDisplay": "GadgetHooks::beforePageDisplay",
|
||||
"CodeEditorGetPageLanguage": "GadgetHooks::onCodeEditorGetPageLanguage",
|
||||
"ContentHandlerDefaultModelFor": "GadgetHooks::onContentHandlerDefaultModelFor",
|
||||
"EditFilterMergedContent": "GadgetHooks::onEditFilterMergedContent",
|
||||
"PageContentInsertComplete": "GadgetHooks::onPageContentInsertComplete",
|
||||
"UserGetDefaultOptions": "GadgetHooks::userGetDefaultOptions",
|
||||
"GetPreferences": "GadgetHooks::getPreferences",
|
||||
"ResourceLoaderRegisterModules": "GadgetHooks::registerModules",
|
||||
"wgQueryPages": "GadgetHooks::onwgQueryPages",
|
||||
"DeleteUnknownPreferences": "GadgetHooks::onDeleteUnknownPreferences"
|
||||
},
|
||||
"config": {
|
||||
"GadgetsRepoClass": "MediaWikiGadgetsDefinitionRepo",
|
||||
|
|
Loading…
Reference in a new issue