Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Changes to Plugins - Install.pm

Quote Reply
Changes to Plugins - Install.pm
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......


Code:
sub uninstall {
# -------------------------------------------------------------------
# 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


Subject Author Views Date
Thread Changes to Plugins - Install.pm pugdog 2115 Jan 28, 2001, 1:34 AM
Thread Re: Changes to Plugins - Install.pm
Alex 2023 Jan 29, 2001, 4:32 PM
Post Re: Changes to Plugins - Install.pm
pugdog 2016 Jan 29, 2001, 5:12 PM