Blocks: Mass Actions block

Maintained by Picture of Clem Smith Clem Smith
This block allows instructors to perform actions upon multiple resources or activities, rather than having to perform repeated actions on individual items.
924 sites
44 fans

This block allows instructors to perform actions upon multiple resources or activities, rather than having to perform repeated actions on individual items.

To use this block, Javascript must be enabled in your browse and you must be in editing mode in the course home page. The user must have capability "block/massaction:use". The block may now be used with a course in any course format. However, the OneTopic format is not properly supported at this time. The work-around is to change course formats to another format (Weekly or Topics are well-tested), move the course content around, then change the course format back to OneTopic. I will try to fix the interaction between OneTopic and Mass Actions in the future.

Supported actions include mass selection, indentation, deletion, hiding, showing, and moving. To select items to perform actions on, simply click the checkbox to the right of it in the course home page or use select functionality, then click the action you would like to perform in the block.

Note: the original block for Moodle 1.9 is on; this is the version for Moodle 2.

If you encounter bugs or have suggestions for improvement, please use the bug tracker URL and I will work on those as quickly as possible.


Screenshot #0


Picture of Clem Smith
Clem Smith (Lead maintainer)
Picture of Huy Hoang
Huy Hoang: Original maintainer
Picture of Jon Marthaler
Jon Marthaler: Former developer
Picture of Dominic Hanzely
Dominic Hanzely: Former developer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Brian Warling
    Wed, 21 Sep 2016, 1:41 AM
    The "Duplicate to section" feature doesn't appear to work in 2.7. Our developer says it's calling a function that doesn't exist in 2.7 (introduced in 2.8). He opened an issue ticket on github (
  • Picture of Chandrashekar Ramanathan
    Thu, 15 Jun 2017, 5:52 PM
    Installed with Moodle 2.8 and it works like a charm. Thank you!
  • Picture of Dan Zhao
    Mon, 21 Aug 2017, 10:45 PM
    Any news on 3.3?
  • Picture of Clem Smith
    Thu, 24 Aug 2017, 10:29 PM
    I am working on a version compatible with 3.3 and later. Hoping to have it ready next week.
  • Picture of Angel Diaz Incio
    Wed, 13 Sep 2017, 12:42 AM
    We cannot make this work on 2.3.4 (We used the one for Moodle 2.4). The plugin installs without problems but the block shows the message "Javascript must be enabled..." (It is enabled), and the checkboxes to select activities are missing, we also tried to disable AJAX to no avail, please let us know if there's something we can do.
  • Picture of Clem Smith
    Wed, 13 Sep 2017, 9:52 PM
    Moodle 3.3 compatible version will be out next week. I've got it working and tested; it's being reviewed right now. I apologize for the delay!
  • Picture of Raf Albert
    Thu, 21 Sep 2017, 8:40 PM
    We installed the latest version in Moodle 3.3 and everything works great.
    Thank you for this great plugin.
  • Picture of J. Michael Williams
    Fri, 17 Nov 2017, 2:59 AM
    Please please update for 3.4
  • Picture of Clem Smith
    Fri, 17 Nov 2017, 3:08 AM
    I will get the 3.4 version up next week!
  • Picture of Debbie Unterseher
    Mon, 18 Dec 2017, 5:23 AM
    I get the error/warning message below on a course that the block is installed on. Do I need to worry? Moodle 3.2.6
    Too many params passed to js_call_amd("block_massaction/block_massaction", "init")
    line 1014 of /lib/outputrequirementslib.php: call to debugging()
    line 100 of /blocks/massaction/block_massaction.php: call to page_requirements_manager->js_call_amd()
    line 288 of /blocks/moodleblock.class.php: call to block_massaction->get_content()
    line 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
    line 1187 of /lib/blocklib.php: call to block_base->get_content_for_output()
    line 1239 of /lib/blocklib.php: call to block_manager->create_block_contents()
    line 356 of /lib/blocklib.php: call to block_manager->ensure_content_created()
    line 3942 of /lib/outputrenderers.php: call to block_manager->region_has_content()
    line 3990 of /lib/outputrenderers.php: call to core_renderer->body_css_classes()
    line 32 of /theme/lambda/layout/columns3.php: call to core_renderer->body_attributes()
    line 1110 of /lib/outputrenderers.php: call to include()
    line 1040 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line 246 of /course/view.php: call to core_renderer->header()
  • Picture of Clem Smith
    Mon, 18 Dec 2017, 11:27 PM
    I'm not sure what's causing this error to be thrown. PM sent for instructions on how to reproduce the error. js_call_amd accepts either two or three parameters, and I am passing it three. I think there is something else going on that is causing this problem. If I can track it down, I'll see what I can do to get it fixed. Any information you can provide on how to reproduce the problem will be appreciated.
  • Picture of Debbie Unterseher
    Fri, 29 Dec 2017, 1:38 AM
    It doesn't work on the test server now. I updated from Moodle 3.2.4 to Moodle 3.2.6 and updated the plugin to 2017111700 and now it doesn't work. I'm going to update the production server next week, so I guess I need to stick with the old plugin for block_massaction.
  • Picture of Debbie Unterseher
    Mon, 8 Jan 2018, 3:57 AM
    Seems to work now. Not sure what was going on. Sorry about that!
  • Picture of Jean-Roch Meurisse
    Tue, 20 Feb 2018, 8:20 PM
    I think the problem comes for courses with many activities. The array is imploded into a string and when this string reaches over 1024 characters, it throws a debugging error message (line 1025 in lib/outputrequirementslib.php). Since it's a debugging message, it won't show on a production platform
  • Picture of Clem Smith
    Tue, 20 Feb 2018, 9:28 PM
    I will investigate this issue, Jean-Roch Meurisse. I won't have time to look at this until the weekend, at the earliest. It'll probably be some time in March before this is fixed. I'll get it done as soon as I can, though.
1 2 3 4
Please login to post comments