Moodle activity plugins support teaching interactions. If we are working on a user story that describes some form of learner input, then it is a safe bet that we need to create an activity to support that.
In terms of structure, there is little difference between an activity and a resource--an activity will be listed as such in the Add an activity or resource
dialog if the xxxx_supports()
library callback function doesn't specify the module archetype as a resource (as described earlier in this chapter).
Recall that the user story we have been provided with, describes the choice activity (https://docs.moodle.org/31/en/Choice_activity) with the choices, potentially, enhanced with multimedia.
Using a development environment such as Eclipse will make the transformation of the choice module into the enhanced choice module simple. First we simply right-click on the /mod/choice
folder and paste it back in to the /mod
folder as enhancedchoice
.
Next, we need to modify /version...