Manual:Hooks/ContentHandlerForModelID

Details

 * $modeName: the requested content model name
 * &$handler: set this to a ContentHandler object, if desired.

Called when a ContentHandler is requested for a given content model name, but no entry for that model exists in $wgContentHandlers. It is recommended that the extensions processing content models via this hook would register these models using GetContentModels hook, otherwise the core does not know these models exist.

For more information on content models see ContentHandler.