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

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

by Dave Emsley -
Number of replies: 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

Average of ratings: -
In reply to Dave Emsley

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

by Paul Holden -
Picture of Core developers Picture of Moodle HQ Picture of Moodle Workplace team Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
In reply to Paul Holden

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

by Dave Emsley -
I knew it would be fairly obvious to someone - many thanks Paul.