Syxton / moodle-block_massaction

THE OFFICIAL Mass Actions block for Moodle 3.9 and beyond
9 stars 14 forks source link

Add a callback to let other plugins to limit sections allowed to move activities to #86

Closed dmitriim closed 10 months ago

dmitriim commented 1 year ago

We have a case when a client is using a custom course format. As part of this format some of the sections are populated automatically using external data and no activities are allowed to added to those sections.

We are proposing to extend a functionality of the block and implement a callback that will allow course formats declare a list of sections that are not allowed for moving/duplicating activities to inside a course or when moving to another course.

TomoTsuyuki commented 1 year ago

I made PR #92 for this issue. Please review and merge if it's ok.

Syxton commented 10 months ago

merged in both branches. Thank you for your work on this!