Hi,
What you are trying to do doesn't sound straightforward - i.e. I'm not sure that it will be easy to add in an extra condition. However, the global bit is easy - you can just add another sub in the plugin pm file and call that from within the plugin.
What you are trying to do doesn't sound straightforward - i.e. I'm not sure that it will be easy to add in an extra condition. However, the global bit is easy - you can just add another sub in the plugin pm file and call that from within the plugin.