]> git.mjollnir.org Git - moodle.git/commit
accesslib: Introducing context_moved() - call after moving courses/coursecats
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:13:33 +0000 (07:13 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:13:33 +0000 (07:13 +0000)
commite4fec273408390ef0744407d6f7d11203caa5004
treede9af3e6b0615bae84435439bf026ef05fa51dd0
parentc633af7a5a09998a597905cec263056858a63d1c
accesslib: Introducing context_moved() - call after moving courses/coursecats

With the new accesslib, moving courses and categories has a major
impact on enrolments and unenrolments.

At _least_ we need to signal accesslib that it has happened. So here
is context_moved() for exactly that.

Open to refactoring later into something along the lines of

 - move_course()
 - move_category()

However, at this stage the most important of those two: move_course()
does not fit very well with the code in course/edit. So keep it simple
for now.
lib/accesslib.php