|
[
Permalink
| « Hide
]
Jamie Pratt added a comment - 02/May/08 11:13 PM
Would be great if you had time to tackle this Tim.
Attaching a file settingstree.php that uses the new mechanism in the admin tree to let activity modules do more than just add one page to the admin menu. This file includes commented out code to include general settings for all reports and a comment about where to add code for the quiz module general settings page.
It also searches mod/quiz/report sub folders for any settings.php pages. If any are found or if some general settings for reports have been defined a sub folder will be added quiz/reports. Right now you can drop this into mod/quiz. You won't see anything until some actual pages are added to the extra categories on the admin menu. If you drop this into mod/quiz then you will no longer see the settings page defined by config.html The same page can be used in HEAD and 1.9 I added a TODO comment to an if branch in HEAD that needs deleting as soon as quiz/config.html is migrated to used the admin menu api. The TODO comment is in admin/settings/plugins.php
Done.
Note that if non of the quiz reports have any settings, then the quiz settings appear directly under Plugins -> Activity modules. If some quiz reports do have settings, then Plugins -> Activity modules -> Quiz becomes an expandable menu with General settings and XXX Report settings, etc. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||