Skip to content
This repository has been archived by the owner on Sep 13, 2021. It is now read-only.

External modules

Jasper W. D. M. Peters edited this page Nov 5, 2019 · 1 revision

External modules

External modules allow development using WF+ for user-scripts and other extensions. WF+ allows other user-scripts and extensions to listen for the same events WF+'s own modifications use.

Provided controller hooks:

Review page:

  • NewSubmissionController hooked as nSubCtrl
  • AnswerController hooked as ansCtrl
  • WhatIsItController hooked as whatCtrl
  • NewSubmissionDataService hooked as nSubDS

Nominations page:

  • NominationsController hooked as nomCtrl

Profile page:

  • ProfileController hooked as pCtrl

Provided events:

Review page:

  • WFPNSubCtrlHooked
  • WFPAnsCtrlHooked
  • WFPWhatCtrlHooked
  • WFPNSubDSHooked
  • WFPAllRevHooked

Nominations page:

  • WFPNomCtrlHooked
  • WFPNomSelected (Triggers when users clicks on a nomination from the list)

Profile page:

  • WFPPCtrlHooked