2009-01-24, 09:05 PM
This is just a little tip for people who are new to creating plugins, and are wondering what some of the functions do. I'll go over the main 3...
Kind Regards,
TomL
- pluginName_info()
- This function basically returns all of the information to the Admin Control Panel once the file is uploaded to inc/plugins.
- NOTE: THIS FUNCTION IS NEEDED!
- This function basically returns all of the information to the Admin Control Panel once the file is uploaded to inc/plugins.
- pluginName_activate()
- This function activates the plugin, and handles anything that would need to be done to activate the function and make it work properly - such as inserting SQL into the database.
- NOTE: This function is recommended.
- This function activates the plugin, and handles anything that would need to be done to activate the function and make it work properly - such as inserting SQL into the database.
- pluginName_deactivate()
- This function does the opposite of pluginName_activate. This function takes all of the information that was done during the installation process, and gets rid of it - SQL insertions, etc.
- NOTE: This function is recommended.
- This function does the opposite of pluginName_activate. This function takes all of the information that was done during the installation process, and gets rid of it - SQL insertions, etc.
Kind Regards,
TomL