Setting default access restrictions

Re: Setting default access restrictions

par Darko Miletić,
Nombre de réponses : 0

You could probably do that provided that you know how those controls behave. You should create a local plugin or admin tool plugin that implements coursemodule_standard_elements hook and do the logic there.

For example if you have a plugin local_foo in the lib. php for that plugin you should have following method:

function local_foo_coursemodule_standard_elements($pluginform, $mform) {
    if (!empty(get_config('core', 'enableavailability'))) {
       // Do whatever you need to do here.
    }
}





Moyenne des évaluations:Useful (1)