Please sign in to comment.
lib MDL-25981 Improved modinfo
This commit: a) moves modinfo code into new library modinfolib.php b) uses classes instead of stdClass objects, allowing a huge amount of documentation (and IDE completion) c) adds hooks so that plugins other than forum can display messages like forum's 'unread', and plugins other than label can display html (apart from/as well as their view.php link) on the course view page d) removes current hacks for forum and label (mainly in print_section but also across the code), replacing with new 'content' and similar variables [this is the reason for the changes in blocks, etc] e) reduces size of modinfo in database (only when rebuilt) by excluding empty fields The change is intended to be backward compatible and does not affect the format of modinfo in database.
- Loading branch information...
Showing with 1,412 additions and 407 deletions.
- +2 −1 blocks/activity_modules/block_activity_modules.php
- +15 −27 blocks/site_main_menu/block_site_main_menu.php
- +16 −27 blocks/social_activities/block_social_activities.php
- +191 −96 course/lib.php
- +1 −1 course/report/outline/index.php
- +9 −1 course/report/participation/index.php
- +4 −3 course/resources.php
- +1,092 −0 lib/modinfolib.php
- +29 −239 lib/moodlelib.php
- +17 −11 lib/navigationlib.php
- +1 −0 lib/setup.php
- +2 −1 lib/weblib.php
- +32 −0 mod/forum/lib.php
- +1 −0 mod/label/lib.php
Oops, something went wrong.