Alex....
A lot of changes...
First, it seems
$mgr->install_hooks ( 'Auth_WWWThreads', [
['auth_init', 'PRE', 'Plugins::Auth_WWWThreads::auth_init'],
['auth_add_user', 'PRE', 'Plugins::Auth_WWWThreads::auth_add_user'],
...
That the install_hooks function is looking for a single passed argument,
not individual lines (though that didn't seem to make much difference on install)
But......
# -------------------------------------------------------------------
# Not much to uninstall.
#
my $mgr = shift;
# Hooks get cleaned up automatically.
return "The plugin has been successfully removed.";
}I still have a full uninstall naming each of the unistall options, and they are _NOT_ being un-installed.
If I uninstall, and then update any other plug-in, the _pre and _post hooks are removed when the file is saved back.
These are probably bugs... or at the very least, quirks :)
PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ
A lot of changes...
First, it seems
$mgr->install_hooks ( 'Auth_WWWThreads', [
['auth_init', 'PRE', 'Plugins::Auth_WWWThreads::auth_init'],
['auth_add_user', 'PRE', 'Plugins::Auth_WWWThreads::auth_add_user'],
...
That the install_hooks function is looking for a single passed argument,
not individual lines (though that didn't seem to make much difference on install)
But......
Code:
sub uninstall { # -------------------------------------------------------------------
# Not much to uninstall.
#
my $mgr = shift;
# Hooks get cleaned up automatically.
return "The plugin has been successfully removed.";
}
If I uninstall, and then update any other plug-in, the _pre and _post hooks are removed when the file is saved back.
These are probably bugs... or at the very least, quirks :)
PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ