Gossamer Forum
Quote Reply
Hook naming bug?
    

Error running plugin PRE hook: Plugins::EditorMonitor::user_loginlink. Reason: Plugins::EditorMonitor::user_loginlink does not exist in Plugins/EditorMonitor at user.cgi line 25.

My install file and plugin module both refer to Plugins::EditorMonitor::user_login not user_loginlink, as created by the plug-in wizard.

Is this a bug? Or something I have done wrongShocked



$mgr->install_hooks ( 'EditorMonitor', [ ['user_login', 'PRE', 'Plugins::EditorMonitor::user_loginlink', 'FIRST'] ]);

Do the green bits have to have the same name also? Because when they are the code works. (perhaps that answers my question).


http://www.iuni.com/...tware/web/index.html
Links Plugins

Last edited by:

Ian: Jun 1, 2002, 11:26 AM
Quote Reply
Re: [Ian] Hook naming bug? In reply to
>>
My install file and plugin module both refer to Plugins::EditorMonitor::user_login not user_loginlink, as created by the plug-in wizard.
<<

The install file _does_ use loginlink

>>
$mgr->install_hooks ( 'EditorMonitor', [ ['user_login', 'PRE', 'Plugins::EditorMonitor::user_loginlink', 'FIRST'] ]);
<<

'user_login' is the hook name
'Plugins::EditorMonitor::user_loginlink' is the routine compiled when the hook is encountered.
Quote Reply
Re: [Paul] Hook naming bug? In reply to
Thank you again Paul... it is all starting to fall into place!!

To think two months ago, Perl was something you found in an oyster to me!!


http://www.iuni.com/...tware/web/index.html
Links Plugins