Question bank unused questions

General plugins (Local) ::: local_unusedquestions
Maintained by Ray Morris
Extends the Moodle question bank to find questions which are / are not used in a quiz.
Latest release:
85 sites
10 downloads
19 fans
Current versions available: 1

Extends the Moodle question bank to find questions which are / are not used in a quiz.


This may be useful when adding questions to a quiz - no need to add questions which are already in the quiz.

It may also be useful to determine if some questions should be removed or moved, since they aren't being used.

Screenshots

Screenshot #0
Screenshot #1

Contributors

Ray Morris (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Dan Marsden
    Wed, 11 Feb 2015, 12:16 PM
    Hi Ray, that code seems so simple but it is a really nice improvement to the quiz editing interface - great work! I can see it being something that would be accepted as a core feature at some point (coded slightly differently and not as a local plugin though)

    Couple of things you might want to think about
    1) The description and screenshots you've added here don't really do the plugin justice and I had to install it to understand what it really did.

    2) in lib.php function init() there is a call to global $DB but $DB isn't used.

    3) in lib.php $this->onlyused is set in the _construct() function but it is undefined at the class level, you might want to add a "protected $onlyused" at the top of the class or something similar.

    4) You may want to improve the phpdocs a little - running it through the automated check tool at:
    https://github.com/moodlehq/moodle-local_moodlecheck

    The only really important item in that list is probably 1) above.

    great work!
  • Priyanka Sinha
    Mon, 18 Jan 2016, 1:14 AM
    Hi Ray, I am looking for this plugin for my site on Moodle 2.9. When would the version for 2.9 be released? Thanks!
  • koen roggemans
    Thu, 27 Sept 2018, 8:12 PM
    What a great plugin - saved the day.
    Works like a charm on Moodle 3.5
  • Rakesh Chandrakar
    Mon, 22 Apr 2019, 9:14 PM
    Not working in Moodle 3.6, anyone has a solution.
  • Anant Shree
    Wed, 5 Aug 2020, 1:36 AM
    Not working with questions if they are in sub category or sub-sub category
  • koen roggemans
    Thu, 4 Jan 2024, 5:13 PM
    This plugin breaks the upgrade from Moodle 4.2 to 4.3 with the message

    Class 'core_question\bank\search\condition' has been renamed for the autoloader and is now deprecated. Please use 'core_question\local\bank\condition' instead.

    line 153 of /lib/classes/component.php: call to debugging()
    line 25 of /local/unusedquestions/lib.php: call to core_component::classloader()
    line 921 of /lib/classes/component.php: call to include_once()
    line 8038 of /lib/moodlelib.php: call to core_component::get_plugin_list_with_file()
    line 844 of /lib/setup.php: call to get_plugins_with_function()
    line 84 of /config.php: call to require_once()
    line 94 of /admin/index.php: call to require()


    Fatal error: Type of local_unusedquestions_question_bank_search_condition::$where must be string (as in class core_question\local\bank\condition) in /var/www/elo/moodle/local/unusedquestions/lib.php on line 25
Please login to post comments