Remove STATEMENTS section in install.xml file, use db/install.php or db/log.php instead

Remove STATEMENTS section in install.xml file, use db/install.php or db/log.php instead

by 康 陈 -
Number of replies: 2

Remove STATEMENTS section in install.xml file, use db/install.php or db/log.php instead.

How can I edit the install.php?

Average of ratings: -
In reply to 康 陈

Re: Remove STATEMENTS section in install.xml file, use db/install.php or db/log.php instead

by Mark Johnson -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

install.php defines a function which is executed after your plugin's tables are created.

Take a look at an existing plugin's install.php file for an example, the assignement plugin has a simple one

You'll need to replace assignment in the function's name with your plugin's component/frankenstyle name.

In reply to Mark Johnson

回复: Re: Remove STATEMENTS section in install.xml file, use db/install.php or db/log.php instead

by 康 陈 -

OK ,thank you.