I am creating a plugin and have an external cronjob to run it, how do i test if the plugin is disabled via provided perl APIs.
Appreciate any help.
Reported on Movable Type 4.2
I am creating a plugin and have an external cronjob to run it, how do i test if the plugin is disabled via provided perl APIs.
Appreciate any help.
Reported on Movable Type 4.2
my $plugin = MT->component('mypluginid');
if ($plugin) {
# plugin is installed and enabled
} else {
# plugin is disabled or not installed
}
The 'mypluginid' is what the plugin defines as its 'id' element in the registry.
Thanks Kevin.