Moodle Plugins directory: Quick enrollment | Moodle.org

Quick enrollment
Blocks ::: block_enrollment
Maintained by
Adrien Jamot
With this plugin you can quickly enroll users to many courses.
Latest release:
77 sites
3 downloads
14 fans
Current versions available: 2
- Add the Quick enrollment block to Moodle
- Click enroll users
- Choose a user and some courses
- Choose a role
-Choose enrol period
- Click "OK" to enroll the user to courses
Contributors
Adrien Jamot (Lead maintainer)
Please login to view contributors details and/or to contact them
https://github.com/danmarsden/moodle-block_enrollment
I haven't performed a complete review on the code but it seems to function in the Moodle 3.2 site I'm using for the test.
If anyone is interested, you simply replace the line
"if (!isloggedin() || isguestuser() || !is_siteadmin()){"
with
" $systemcontext = context_system::instance();
if (!isloggedin() || isguestuser() || !has_capability('moodle/user:editprofile', $systemcontext) ){"
We use it on Moodle 3.0.1 but it should work on later versions as well.
Check it out here: http://www.easkme.com
I have this plugin working, however it pulls back all users, even those who have been deleted etc. Is there an easy fix for this? I just want it to pull back current users!
Many thanks in advance
I made available on github an updated version that works on 3.8:
https://github.com/danielneis/moodle-block_enrollment
It was based on Dan Marsden's version available at: https://github.com/danmarsden/moodle-block_enrollment
The advantages of this version (besides working with 3.8) is that I converted it to use Moodle forms and Moodle output components, so now we have an auto-complete field for courses and an autocomplete field for users (using enrol manual auto complete). It also allows to enrol multiple users at same time.
Hope you like