Posts made by Howard Miller

Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I'm trying to add subplugins to my local plugin and understand that I have to create a subplugins.php file. However, I can't figure out what the correct/latest format is. 

I've found MDL-83705 but I'm just (more) confused. 

{
    "subplugintypes": {
        "assignsubmission": "submission",
        "assignfeedback": "feedback"
    },
    "plugintypes": {
        "assignsubmission": "mod/assign/submission",
        "assignfeedback": "mod/assign/feedback"
    }
}

In the example, from the ticket, what's the difference between 'subplugintypes' and 'plugintypes' (and why)?

EDIT:

I'm getting grief about a 'plugininfo' class but I can't find any documentation about what should be in there?

Average of ratings: -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Not that I'm aware of. Plus I think it would be tricky to implement as there are many places in a course that files can be uploaded.

You may also not be aware that Moodle only stores identical files once. So if the same (exact) file is uploaded in ten courses, only one instance is actually stored. So how do you count that?