d0c0e5a635
Question banks were displaying in places they shouldn't, because FEATURE_CAN_DISPLAY wasn't fully implemented. This broadens its usage in the following areas: - Availability info - Not relevant to qbank. However you could feasibly have some module which isn't shown to students, but the teacher can use it to track completion, so dont display the link. - Activities block - links to each activity's index page. We already have the Question banks page in the secondary nav. No need to have it here too. - Overview report - It doesn't make sense to display question banks here, as they're not an activity students can participate in, they wont have dates etc. - Externallib - Return with candisplay = false. The app needs to handle this correctly. - Visibility options, moodleform_mod, modvisible and visibility selector. Not relevant for qbank since it doesn't include the standard coursemodule options, but if an activity with without CAN_DISPLAY did display a visibility setting, "Hidden" should be the only option. - Activity names filter - we dont want automatic links to question banks.