< Manual:Hooks 
 
      | ImportSources | |
|---|---|
| Available from version 1.27.0 (Gerrit change 230996) Called when reading from the $wgImportSourcesconfiguration variable | |
| Define function: | public static function onImportSources( array &$importSources ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"ImportSources": "MyExtensionHooks::onImportSources"
	}
}
 | 
| Called from: | File(s): api/ApiImport.php, specials/SpecialImport.php Function(s): getAllowedImportSources, execute | 
| Interface: | ImportSourcesHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ImportSources extensions.
Can be used to lazy-load the import sources list.
Details
- &$importSources: The value of- $wgImportSources, must be an array
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.