Is there a hook or event when a plugin is installed?

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
chadmiss
Posts: 5
Joined: 04 May 2017, 10:05

Is there a hook or event when a plugin is installed?

Post by chadmiss »

I would like to pre-fill some plugin-tables in the Database when the Plugin is getting installed (aka hitting the "install plugin" button at the config page)

Is there any function, event or hook I can use for this case?

I only found the function install() from the MantisPlugin.class but it seems, like this function is perforemed before any databe tables are created
chadmiss
Posts: 5
Joined: 04 May 2017, 10:05

Re: Is there a hook or event when a plugin is installed?

Post by chadmiss »

alright. I found "InsertData" for the schema()-function helpful
Post Reply