netsapiensis/moodle-block_course_menu — pull request #2 by davosmith (2012-02-22 16:40:35+00:00)
Title: Removed edit_form.php out of date 'definition' function and replaced wit...

...h 'definition_after_data' to prevent warning message in Moodle 2.2

I noticed a warning message when using the block in Moodle 2.2 (related to a missing 'bui_editingatfrontpage' element in edit_form.php). On further investigation I found that the 'definition' function had been overridden by an old Moodle 2.0 version, in order to remove one option from the drop-down 'bui_contexts' select element.

I've removed this override and replaced it with a 'definition_after_data' function that removes that single option from the 'bui_contexts' element before the form is displayed.

I've cherry-picked the change to both the _DEV and _STABLE branches (let me know if you want me to submit a separate pull request for the _STABLE branch).