Execute a function once when installing a block - Moodle 3.10+

Execute a function once when installing a block - Moodle 3.10+

av Dave Emsley -
Antall svar: 2

Hi All,

This is probably a rookie question but if I want to run a task or two but only on the first installation of the block where do I put it?
or how do I call it?

Many Thanks

Dave

Gjennomsnittlig vurdering: -
Som svar til Dave Emsley

Execute a function once when installing a block - Moodle 3.10+

av Paul Holden -
Bilde av Core developers Bilde av Moodle HQ Bilde av Moodle Workplace team Bilde av Particularly helpful Moodlers Bilde av Peer reviewers Bilde av Plugin developers Bilde av Testers