How do I run a script for Addons?

Article Details
URL: https://www.awbs.com/hd/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=71
Article ID: 71
Created On: May 30 2007 02:10 PM

Answer AWBS already has the coding in place to allow custom scripts to be run for Addons:

if(file_exists(WORKDIR."/includes/addons/".$addonname.".php")){

So if you create this file ($addonname is Package Name), your script will be run when the addon queue job runs.