11
nayeem
Re: mass update on config table at module install time
  • 2004/6/14 16:39

  • nayeem

  • Just popping in

  • Posts: 44

  • Since: 2004/1/3 1


sorry found the error. I missed putting IL_config at the bottom. hadnt realized it would break if i miss out certain tables from this list! might be nicer if it told me

12
nayeem
Re: mass update on config table at module install time
  • 2004/6/14 17:10

  • nayeem

  • Just popping in

  • Posts: 44

  • Since: 2004/1/3 1


is there any functions/methods to send output from the post installscript, eg add to msg etc?

13
Mithrandir
Re: mass update on config table at module install time

Yes
$msgs[] = "message here";


Edit: Wait a bit, just checking.

I think you should declare it like this IN the function:
global $msgs;

14
nayeem
Re: mass update on config table at module install time
  • 2004/6/15 8:42

  • nayeem

  • Just popping in

  • Posts: 44

  • Since: 2004/1/3 1


Nope, not working with $msgs.
My xoops_version.php has :

$modversion['onInstall'] = 'installscript.php';


and the installscript.php looks like this :
<?php
function xoops_module_install_il(&$module)
{
        global 
$msgs;
        
$msgs[] = "Install Script has been called!";
}
?>

il is the name of the module directory.

15
Mithrandir
Re: mass update on config table at module install time

Then I was mistaken...

If it is for debugging, you can put in echo statements, but apart from that, it seems that what is possible is to return true (on successful function call) or false(function fails) which will display a predefined message.

Login

Who's Online

152 user(s) are online (78 user(s) are browsing Support Forums)


Members: 0


Guests: 152


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits