Manual:Hooks/RenderPreferencesForm

Details

 * $form: the PreferencesForm
 * $out: output page to render to, probably $wgOut