Note: You are currently viewing documentation for Moodle 3.1. Up-to-date documentation for the latest stable version of Moodle is probably available here: suspend user.
This plugin suspends a list of users based on their email address. The process runs within the moodle cron once a day.
- Make sure you have all the required versions.
- Download the Suspend User plugin.
- Unzip it into your moodle/blocks/ directory.
- Login to you moodle as Administrator and go to Site administration -> Notifications to trigger the installation process.
- Turn editing on the home page.
- Add the block to the page.
- Follow the link in the block to the formula page and start the process(Details described below).
For more information see Installing contributed modules or plugins.
The block can be included by the admin on the main page. The block offers a link to the plugin settings. The block defines a capability for using the settings form. So you can give other roles access to the plugin. By Default only the admin has access. In the form you can set the path and filename of the input file. It must be within the moodledata. The path should be given relative to the moodledata. The csv field delimiter has to be the ';'.
NOTE: The cleanup process itself runs in the moodle cron. So the moodle cron must be running to use this plugin. For more Information see Cron.
Modules & Plugins database entry
You can also find the code on Github.
NOTE: In Github we use an empty master branch. The different plugin versions can be found in special branches for each Moodle version.