Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

How do I send input from pre_uninstall to uninstall?

Quote Reply
How do I send input from pre_uninstall to uninstall?
I am trying to send form data from pre_uninstall to uninstall.

Code:
sub pre_uninstall {
# -----------------------------------------------------------------------------

my $opts = Links::Plugins->get_plugin_user_cfg('myPlugin');

my $uninst_msg = qq~
<INPUT type="checkbox" name="del_customtable" checked="checked">
~;

return $uninst_msg;
}

Then in sub uninstall I have this which doesn't work <g>. $IN->param is empty.
Code:
my $opts = Links::Plugins->get_plugin_user_cfg('myPlugin');
my $editor = $DB->editor('myTable');

if($IN->param('del_customtable')) {
$editor->drop_table("remove");
}

So, how do I get the form values once in uninstall?

Thanks,
Chris
RGB World, Inc. - Software &amp; Web Development.
rgbworld.com

Last edited by:

rgbworld: Jun 8, 2006, 2:29 PM
Quote Reply
Re: [rgbworld] How do I send input from pre_uninstall to uninstall? In reply to
Hmmm it seems to be working properly just like shown above.

Maybe I was looking at the wrong screen. doh! Crazy

Chris
RGB World, Inc. - Software &amp; Web Development.
rgbworld.com