Does anyone have any experience/sample code for using the coursemodule_standard_elements call?
What I want to do is set a default access restriction condition when a user creates a new module. I see the competencies plugin (tool_lp) is using it, but can I use it to set default access restriction conditions?
What I am currently doing is handling the course_module_created event trigger to add the access restriction after the course module is created. But it seems kinda a kludge because someone magically appears after someone creates the course module. If they didn't want the access restriction they would need to edit the module again, rather than remove or see the restriction on the initial module creation form.